Commit 219e71e9 by Arjun Jhukal

updated the error message for the register and login

parent bca7653b
......@@ -69,9 +69,10 @@ export default function RegisterPage() {
router.replace(PATH.AUTH.VERIFY_EMAIL.ROOT);
}
catch (e: any) {
console.log("Error", e);
dispatch(
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,
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