Skip to content

Commit

Permalink
Adjust condition to show backing up page
Browse files Browse the repository at this point in the history
  • Loading branch information
musidlo authored Nov 20, 2024
2 parents 7df4997 + e966ddd commit 7c039b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/app/features/auth/sign-up/sign-up-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ export const SignUpForm = () => {

router.push(redirectUri ?? '/')
} catch (error) {
if (isPhoneAlreadyUsed && error instanceof DOMException && error.name === 'NotAllowedError') {
if (
isPhoneAlreadyUsed &&
error.constructor.name === 'DOMException' &&
error.name === 'NotAllowedError'
) {
setPageState(PageState.BackUpPrompt)
return
}
Expand Down

0 comments on commit 7c039b9

Please sign in to comment.