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 : "/");
|
router.history.push(search.redirect ? search.redirect : "/");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (!error.response.success) {
|
if (error.response.data.success) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
toast.error(error.response.data.message);
|
toast.error(error.response.data.message);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user