fix(loginform): bug where the reset errror was not properly coming over
This commit is contained in:
@@ -52,9 +52,9 @@ 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.data.success) {
|
if (!error.response.data.success) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
toast.error(error.response.data.message);
|
toast.error(error?.response?.data.message);
|
||||||
} else {
|
} else {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
toast.error(error?.message);
|
toast.error(error?.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user