From f253c6b434ed7bfff59aa61044dbd5c27a7560f1 Mon Sep 17 00:00:00 2001 From: rocky-fleek Date: Tue, 29 Mar 2022 13:53:38 -0300 Subject: [PATCH] Added missing else causing clock validation to fire even if not logged in --- source/Popup/Views/Home/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/Popup/Views/Home/index.jsx b/source/Popup/Views/Home/index.jsx index 1356f676..cc516688 100644 --- a/source/Popup/Views/Home/index.jsx +++ b/source/Popup/Views/Home/index.jsx @@ -58,8 +58,7 @@ const Home = () => { sendMessage({ type: HANDLER_TYPES.GET_STATE, params: {} }, (state) => { if (!state?.wallets?.length) { sendMessage({ type: HANDLER_TYPES.LOCK, params: {} }, () => navigator.navigate('login')); - } - if (!clockValidated) { + } else if (!clockValidated) { isClockInSync().then((isInSync) => !isInSync && navigator.navigate('clockError')); } dispatch(setAccountInfo(state.wallets[state.currentWalletId]));