Page MenuHomePhabricator

D11321.id.diff
No OneTemporary

D11321.id.diff

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

Mime Type
text/plain
Expires
Thu, Nov 21, 1:18 AM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2552053
Default Alt Text
D11321.id.diff (1 KB)

Event Timeline