diff --git a/packages/keychain/src/components/purchasenew/checkout/onchain/index.tsx b/packages/keychain/src/components/purchasenew/checkout/onchain/index.tsx index 06a7dfdfb..3a94facd2 100644 --- a/packages/keychain/src/components/purchasenew/checkout/onchain/index.tsx +++ b/packages/keychain/src/components/purchasenew/checkout/onchain/index.tsx @@ -245,9 +245,7 @@ export function OnchainCheckout() { !accountPrivate?.phoneNumberVerifiedAt; if (needsVerification) { - navigate("/purchase/verification?method=apple-pay", { - showClose: true, - }); + navigate("/purchase/verification?method=apple-pay"); return; } diff --git a/packages/keychain/src/components/purchasenew/verification/index.tsx b/packages/keychain/src/components/purchasenew/verification/index.tsx index 128aa9726..47a64deac 100644 --- a/packages/keychain/src/components/purchasenew/verification/index.tsx +++ b/packages/keychain/src/components/purchasenew/verification/index.tsx @@ -167,15 +167,12 @@ const CodeStepView = ({ ); export function Verification() { - const { navigate, setShowClose } = useNavigation(); + const { navigate } = useNavigation(); const location = useLocation(); const searchParams = new URLSearchParams(location.search); const method = searchParams.get("method"); const { toast } = useToast(); - useEffect(() => { - setShowClose(true); - }, [setShowClose]); const { data: meData, isLoading: isMeLoading, diff --git a/packages/keychain/src/components/purchasenew/verification/stripe.tsx b/packages/keychain/src/components/purchasenew/verification/stripe.tsx index 70a2f7ca1..364e968a7 100644 --- a/packages/keychain/src/components/purchasenew/verification/stripe.tsx +++ b/packages/keychain/src/components/purchasenew/verification/stripe.tsx @@ -18,7 +18,7 @@ import { useAccountVerifyMutation, useAccountPrivateQuery } from "@/utils/api"; import { useConnection } from "@/hooks/connection"; export function StripeVerification() { - const { navigate, setShowClose } = useNavigation(); + const { navigate } = useNavigation(); const { isMainnet } = useConnection(); const accountVerifyMutation = useAccountVerifyMutation(); const { refetch: refetchAccountPrivate } = useAccountPrivateQuery(undefined, { @@ -31,10 +31,6 @@ export function StripeVerification() { const [error, setError] = useState(null); const [isSuccess, setIsSuccess] = useState(false); - useEffect(() => { - setShowClose(true); - }, [setShowClose]); - useEffect(() => { if (isSuccess) { const timer = setTimeout(() => {