Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3718900
D11771.id39489.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
815 B
Referenced Files
None
Subscribers
None
D11771.id39489.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11771: [native] Don't refetch nonce from identity after identity auth
Attached
Detach File
Event Timeline
Log In to Comment