change forgot password modal

This commit is contained in:
ilya-bkv 2024-02-01 15:55:35 +03:00
parent 7bcae3ba98
commit 92122e3abb

View File

@ -65,11 +65,15 @@ export const ForgotPasswordForm = () => {
if (response && response.message) { if (response && response.message) {
setMessage(response.message) setMessage(response.message)
} }
if (
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore
if (
response.errors && response.errors &&
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
response.errors.length > 0 && response.errors.length > 0 &&
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
response.errors[0].message.includes('bad user credentials') response.errors[0].message.includes('bad user credentials')
) { ) {
setIsUserNotFound(true) setIsUserNotFound(true)