diff --git a/web/account/log-in-form.react.js b/web/account/log-in-form.react.js --- a/web/account/log-in-form.react.js +++ b/web/account/log-in-form.react.js @@ -22,15 +22,20 @@ const { data: signer } = useSigner(); const dispatch = useDispatch(); - const primaryIdentityPublicKey = useSelector( - state => state.cryptoStore.primaryIdentityKeys?.ed25519, + const primaryIdentityPublicKeys = useSelector( + state => state.cryptoStore.primaryIdentityKeys, + ); + const notificationIdentityPublicKeys = useSelector( + state => state.cryptoStore.notificationIdentityKeys, ); React.useEffect(() => { (async () => { if ( - primaryIdentityPublicKey !== null && - primaryIdentityPublicKey !== undefined + primaryIdentityPublicKeys !== null && + primaryIdentityPublicKeys !== undefined && + notificationIdentityPublicKeys !== null && + notificationIdentityPublicKeys !== undefined ) { return; } @@ -61,7 +66,7 @@ }, }); })(); - }, [dispatch, primaryIdentityPublicKey]); + }, [dispatch, notificationIdentityPublicKeys, primaryIdentityPublicKeys]); const [siweAuthFlowSelected, setSIWEAuthFlowSelected] = React.useState(false);