error-catch

This commit is contained in:
Untone 2024-05-19 00:55:30 +03:00
parent 4a55271a79
commit 135e0d215f

View File

@ -99,8 +99,7 @@ export const LoginForm = () => {
console.debug('[signIn] errors:', errors) console.debug('[signIn] errors:', errors)
if ( if (
errors.some( errors.some(
(error) => (error) => error.message.includes('bad user credentials') || error.message.includes('user not'),
error.message.includes('bad user credentials') || error.message.includes('user not found'),
) )
) { ) {
setValidationErrors((prev) => ({ setValidationErrors((prev) => ({