Commit 45ff0edc by Arjun Jhukal

updated the error message for the register and login

parent 219e71e9
......@@ -74,10 +74,10 @@ export default function LoginPage() {
});
router.replace(PATH.DASHBOARD.ROOT);
}
catch (e) {
catch (e: any) {
dispatch(
showToast({
message: "Something went wrong. Try again later",
message: e?.data?.message || "Something went wrong. Try again later",
variant: ToastVariant.ERROR,
autoTime: true,
}),
......
......@@ -72,7 +72,7 @@ export default function RegisterPage() {
console.log("Error", e);
dispatch(
showToast({
message: e.data.message || "Unable to register user. Try again later",
message: e?.data?.message || "Unable to register user. Try again later",
variant: ToastVariant.ERROR,
autoTime: true,
}),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment