Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3367719
D6879.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6879.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6879: [web] Update `LoginForm` `useEffect` early-exit logic to include `notificationIdentityPublicKeys`
Attached
Detach File
Event Timeline
Log In to Comment