From 48c7b87a559dd302ce8c9667cc1a125f570ecc37 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Thu, 25 Sep 2025 22:02:17 +0530 Subject: [PATCH] fix: verify ownership state reflect --- app/src/components/ui/verification-step.tsx | 7 ++----- packages/react/src/v1/hooks/useAuth.ts | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/components/ui/verification-step.tsx b/app/src/components/ui/verification-step.tsx index 3ef55ea..9668155 100644 --- a/app/src/components/ui/verification-step.tsx +++ b/app/src/components/ui/verification-step.tsx @@ -78,11 +78,8 @@ export function VerificationStep({ try { console.log('📞 Calling verifyWallet()...'); - await verifyOwnership(); - if (currentUser?.verificationStatus === EVerificationStatus.ENS_ORDINAL_VERIFIED) { - // For now, just show success - the actual ownership check will be done - // by the useEffect when the user state updates - console.log('✅ Verification successful, setting result'); + const ok = await verifyOwnership(); + if (ok) { setVerificationResult({ success: true, message: diff --git a/packages/react/src/v1/hooks/useAuth.ts b/packages/react/src/v1/hooks/useAuth.ts index 896587a..57ca3cc 100644 --- a/packages/react/src/v1/hooks/useAuth.ts +++ b/packages/react/src/v1/hooks/useAuth.ts @@ -80,8 +80,6 @@ export function useAuth() { return false; } - console.log({user, identity}) - const updated: User = { ...user, ...identity,