Fix ForgotPassword format
This commit is contained in:
1 parent
e1dfd98840
commit
04cf47544a
1 file changed
+2
-2
@@ -53,12 +53,12 @@ const ForgotPassword = () => {
|
|||||||
if (action.payload.success) {
|
if (action.payload.success) {
|
||||||
sessionStorage.setItem("email", form.email);
|
sessionStorage.setItem("email", form.email);
|
||||||
navigate("/check-email", {
|
navigate("/check-email", {
|
||||||
state: location.state || { from: "/login" } // Preserve original from, fallback to login
|
state: location.state || { from: "/login" }, // Preserve original from, fallback to login
|
||||||
});
|
});
|
||||||
createToast({
|
createToast({
|
||||||
body: t("auth.forgotPassword.toasts.sent").replace("<email/>", form.email),
|
body: t("auth.forgotPassword.toasts.sent").replace("<email/>", form.email),
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (action.payload) {
|
if (action.payload) {
|
||||||
// dispatch errors
|
// dispatch errors
|
||||||
createToast({
|
createToast({
|
||||||
|
|||||||
Reference in new issue
Block a user