🧑‍💻 Improve sign up error message

This commit is contained in:
Baptiste Arnaud
2024-02-19 10:28:57 +01:00
parent 54f51b6737
commit e783bb4121
2 changed files with 11 additions and 2 deletions

View File

@@ -94,11 +94,20 @@ export const SignInForm = ({
status: 'info',
description: t('auth.signinErrorToast.tooManyRequests'),
})
else
else if (response.error.includes('sign-up-disabled'))
showToast({
title: t('auth.signinErrorToast.title'),
description: t('auth.signinErrorToast.description'),
})
else
showToast({
status: 'info',
description: t('errorMessage'),
details: {
content: 'Check server logs to see relevent error message.',
lang: 'json',
},
})
} else {
setIsMagicLinkSent(true)
}