Page MenuHomePhabricator

D11771.id39489.diff
No OneTemporary

D11771.id39489.diff

diff --git a/native/account/siwe-panel.react.js b/native/account/siwe-panel.react.js
--- a/native/account/siwe-panel.react.js
+++ b/native/account/siwe-panel.react.js
@@ -80,7 +80,14 @@
const [primaryIdentityPublicKey, setPrimaryIdentityPublicKey] =
React.useState<?string>(null);
+ const hasCurrentUserInfo = useSelector(
+ state => !!state.currentUserInfo && !state.currentUserInfo.anonymous,
+ );
+
React.useEffect(() => {
+ if (hasCurrentUserInfo) {
+ return;
+ }
const generateNonce = async (nonceFunction: () => Promise<string>) => {
try {
const response = await nonceFunction();
@@ -117,6 +124,7 @@
getSIWENonceCall,
identityGenerateNonce,
onClosing,
+ hasCurrentUserInfo,
]);
const [isLoading, setLoading] = React.useState(true);

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 9, 10:44 AM (8 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2818867
Default Alt Text
D11771.id39489.diff (815 B)

Event Timeline