Skip to content

Commit

Permalink
Fix DOM validation error (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
broody authored Aug 13, 2024
1 parent c58834f commit 0aa811f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/keychain/src/components/connect/CreateSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ export function CreateSession({
variant="connect"
title="Create Session"
description={
<Text fontSize="sm" color="text.secondary">
<>
Pre-approve{" "}
<LockIcon fontSize="md" color="text.secondaryAccent" mr={0.5} />
<Text as="span" color="text.secondaryAccent" fontWeight="bold">
{origin}
</Text>{" "}
to perform the following actions on your behalf
</Text>
</>
}
>
<Content>
Expand Down
4 changes: 3 additions & 1 deletion packages/keychain/src/hooks/connection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export function ConnectionProvider({ children }: PropsWithChildren) {
// Set rpc and origin if we're not embedded (eg Slot auth/session)
if (!isIframe()) {
setOrigin(urlParams.get("origin") || process.env.NEXT_PUBLIC_ORIGIN);
setRpcUrl(urlParams.get("rpc_url") || process.env.NEXT_PUBLIC_RPC_SEPOLIA);
setRpcUrl(
urlParams.get("rpc_url") || process.env.NEXT_PUBLIC_RPC_SEPOLIA,
);
}

const prefundParam = urlParams.get("prefunds");
Expand Down

0 comments on commit 0aa811f

Please sign in to comment.