From 98ef21cb8c867100db14d7cec77e6efe80c9f2a7 Mon Sep 17 00:00:00 2001 From: "joslyn.rani" Date: Mon, 10 Feb 2025 14:24:26 +0530 Subject: [PATCH] OF-690 - Added a condition to check id --- mobile/screens/onboarding/WaitingForVerification.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mobile/screens/onboarding/WaitingForVerification.tsx b/mobile/screens/onboarding/WaitingForVerification.tsx index 9a7cc84a..491023c9 100644 --- a/mobile/screens/onboarding/WaitingForVerification.tsx +++ b/mobile/screens/onboarding/WaitingForVerification.tsx @@ -66,7 +66,9 @@ const WaitingForVerification = ({ // Run reloadUserState when the screen is mounted useEffect(() => { - reloadUserState(); + if (state.id) { + reloadUserState(); + } }, []); const openVerificationCallPDF = async () => { @@ -101,7 +103,9 @@ const WaitingForVerification = ({ }; return ( - +