From 5dad00096a352bb3cef0a09527f8fa5c3bc6a381 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Sun, 9 Jul 2023 03:42:01 +0100 Subject: [PATCH] check for all necessary variables from API to determine verify link success --- src/components/AuthPages/VerifyLink/index.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/AuthPages/VerifyLink/index.jsx b/src/components/AuthPages/VerifyLink/index.jsx index 81b5f53..3ff67fc 100644 --- a/src/components/AuthPages/VerifyLink/index.jsx +++ b/src/components/AuthPages/VerifyLink/index.jsx @@ -86,10 +86,14 @@ export default function VerifyLink() { const verifyRes = await userApi.verifyEmail(code); if (verifyRes.status === 200) { let { data } = verifyRes; - + console.log('TESTING VERIFY',data) if ( data && - data.internal_return >= 0 && + data.internal_return >= 0 && + data.status == 0 && + data.pending_id != '' && + data.pending_uid != '' && + data.username != '' && data.status_text === "Link Verified" ) { setPageLoader(false);