We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7df4997 + e966ddd commit 7c039b9Copy full SHA for 7c039b9
packages/app/features/auth/sign-up/sign-up-form.tsx
@@ -85,7 +85,11 @@ export const SignUpForm = () => {
85
86
router.push(redirectUri ?? '/')
87
} catch (error) {
88
- if (isPhoneAlreadyUsed && error instanceof DOMException && error.name === 'NotAllowedError') {
+ if (
89
+ isPhoneAlreadyUsed &&
90
+ error.constructor.name === 'DOMException' &&
91
+ error.name === 'NotAllowedError'
92
+ ) {
93
setPageState(PageState.BackUpPrompt)
94
return
95
}
0 commit comments