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)
if (
errors.some(
(error) =>
error.message.includes('bad user credentials') || error.message.includes('user not found'),
(error) => error.message.includes('bad user credentials') || error.message.includes('user not'),
)
) {
setValidationErrors((prev) => ({