Page MenuHomePhabricator

D6879.diff
No OneTemporary

D6879.diff

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<boolean>(false);

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 3:59 PM (20 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585408
Default Alt Text
D6879.diff (1 KB)

Event Timeline