Skip to content

Commit 7c039b9

Browse files
authored
Adjust condition to show backing up page
2 parents 7df4997 + e966ddd commit 7c039b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/app/features/auth/sign-up/sign-up-form.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ export const SignUpForm = () => {
8585

8686
router.push(redirectUri ?? '/')
8787
} catch (error) {
88-
if (isPhoneAlreadyUsed && error instanceof DOMException && error.name === 'NotAllowedError') {
88+
if (
89+
isPhoneAlreadyUsed &&
90+
error.constructor.name === 'DOMException' &&
91+
error.name === 'NotAllowedError'
92+
) {
8993
setPageState(PageState.BackUpPrompt)
9094
return
9195
}

0 commit comments

Comments
 (0)