Commit 219e71e9 by Arjun Jhukal

updated the error message for the register and login

parent bca7653b
...@@ -69,9 +69,10 @@ export default function RegisterPage() { ...@@ -69,9 +69,10 @@ export default function RegisterPage() {
router.replace(PATH.AUTH.VERIFY_EMAIL.ROOT); router.replace(PATH.AUTH.VERIFY_EMAIL.ROOT);
} }
catch (e: any) { catch (e: any) {
console.log("Error", e);
dispatch( dispatch(
showToast({ showToast({
message: e.message || "Unable to register user. Try again later", message: e.data.message || "Unable to register user. Try again later",
variant: ToastVariant.ERROR, variant: ToastVariant.ERROR,
autoTime: true, 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