change forgot password modal
This commit is contained in:
parent
7bcae3ba98
commit
92122e3abb
|
@ -65,11 +65,15 @@ export const ForgotPasswordForm = () => {
|
|||
if (response && response.message) {
|
||||
setMessage(response.message)
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
if (
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
response.errors &&
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
response.errors.length > 0 &&
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
response.errors[0].message.includes('bad user credentials')
|
||||
) {
|
||||
setIsUserNotFound(true)
|
||||
|
|
Loading…
Reference in New Issue
Block a user