fix(loginform): error with password reset
This commit is contained in:
@@ -52,7 +52,7 @@ export default function LoginForm() {
|
||||
router.history.push(search.redirect ? search.redirect : "/");
|
||||
} catch (error) {
|
||||
// @ts-ignore
|
||||
if (!error.response.success) {
|
||||
if (error.response.data.success) {
|
||||
// @ts-ignore
|
||||
toast.error(error.response.data.message);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user