Skip to content

Commit

Permalink
Added missing else causing clock validation to fire even if not logge…
Browse files Browse the repository at this point in the history
…d in
  • Loading branch information
rocky-fleek committed Mar 29, 2022
1 parent c81a5c5 commit f253c6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/Popup/Views/Home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down

0 comments on commit f253c6b

Please sign in to comment.