Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3322767
D11321.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
D11321.diff
View Options
diff --git a/native/account/registration/connect-ethereum.react.js b/native/account/registration/connect-ethereum.react.js
--- a/native/account/registration/connect-ethereum.react.js
+++ b/native/account/registration/connect-ethereum.react.js
@@ -153,14 +153,16 @@
async (result: SIWEResult) => {
let userAlreadyExists;
if (usingCommServicesAccessToken) {
- const findUserIDResponse =
+ const findUserIDResponseString =
await commRustModule.findUserIDForWalletAddress(result.address);
- userAlreadyExists = JSON.parse(findUserIDResponse).userID !== null;
+ const findUserIDResponse = JSON.parse(findUserIDResponseString);
+ userAlreadyExists =
+ !!findUserIDResponse.userID || findUserIDResponse.isReserved;
} else {
const searchPromise = exactSearchUserCall(result.address);
void dispatchActionPromise(exactSearchUserActionTypes, searchPromise);
const { userInfo } = await searchPromise;
- userAlreadyExists = userInfo !== null;
+ userAlreadyExists = !!userInfo;
}
if (userAlreadyExists) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 1:18 AM (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2552053
Default Alt Text
D11321.diff (1 KB)
Attached To
Mode
D11321: [native] update userAlreadyExists in ConnectEthereum component
Attached
Detach File
Event Timeline
Log In to Comment