From 76e9f996a30008fdd9264adad94e578df724ceae Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Thu, 8 Aug 2024 14:11:36 +0530 Subject: [PATCH] Check for KYC ID on connect wallet page --- src/pages/ConnectWallet.tsx | 58 ++++++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 17 deletions(-) diff --git a/src/pages/ConnectWallet.tsx b/src/pages/ConnectWallet.tsx index 061dc33..fed158a 100644 --- a/src/pages/ConnectWallet.tsx +++ b/src/pages/ConnectWallet.tsx @@ -17,6 +17,9 @@ const ConnectWallet = () => { } useEffect(() => { + if (!kycIdHash) { + return; + } if (session) { navigate("/sign-with-nitro-key", { @@ -33,7 +36,41 @@ const ConnectWallet = () => { return ( - + + + Disclaimer + + + {WALLET_DISCLAIMER_MSG} + + + + + + : { padding={5} > - Disclaimer + Error - {WALLET_DISCLAIMER_MSG} + KYC ID not found. Please verify your email and try again - - - + } ); };