diff --git a/examples/starknet-react-next/src/components/providers/StarknetProvider.tsx b/examples/starknet-react-next/src/components/providers/StarknetProvider.tsx index 1c0bb841b..913f10ec1 100644 --- a/examples/starknet-react-next/src/components/providers/StarknetProvider.tsx +++ b/examples/starknet-react-next/src/components/providers/StarknetProvider.tsx @@ -60,7 +60,6 @@ const cartridge = new CartridgeConnector({ "cartridge-starknet-react-next", "keychain", ), - rpc: process.env.NEXT_PUBLIC_RPC_SEPOLIA, paymaster: { caller: shortString.encodeShortString("ANY_CALLER"), diff --git a/packages/keychain/src/Policies.tsx b/packages/keychain/src/Policies.tsx index 3f4bfe1ed..29037ff98 100644 --- a/packages/keychain/src/Policies.tsx +++ b/packages/keychain/src/Policies.tsx @@ -48,7 +48,7 @@ export function Policies({ // The container already set border radius (for top & bottom), but we // set the bottom radius for the last item here because for certain // browsers' scrolling behaviour (eg Firefox) just to make it look nicer. - borderBottomRadius={i === policies.length - 1 ? "base" : "none"} + borderBottomRadius={i === policies?.length - 1 ? "base" : "none"} > {({ isExpanded }) => ( <> diff --git a/packages/keychain/src/components/layout/Footer/index.tsx b/packages/keychain/src/components/layout/Footer/index.tsx index abb049401..dd0a11ccf 100644 --- a/packages/keychain/src/components/layout/Footer/index.tsx +++ b/packages/keychain/src/components/layout/Footer/index.tsx @@ -32,7 +32,7 @@ export function Footer({ const isExpandable = useMemo( () => !!origin && - !!policies.length && + !!policies?.length && variant === "connect" && !isSignup && !hideTxSummary, @@ -100,7 +100,7 @@ export function Footer({ onClick={footer.onToggle} _hover={{ cursor: "pointer" }} > - {!hideTxSummary && !!policies.length && ( + {!hideTxSummary && !!policies?.length && (