mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
fix: error in toast message after signup
This commit is contained in:
@@ -67,10 +67,10 @@ const SignUp = () => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
try {
|
try {
|
||||||
await api.post("/auth/signup", user);
|
await api.post("/auth/signup", user);
|
||||||
toast.success(i18n.t("signup.toast.success"));
|
toast.success(i18n.t("signup.toasts.success"));
|
||||||
history.push("/login");
|
history.push("/login");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
toast.error(i18n.t("signup.toast.fail"));
|
toast.error(i18n.t("signup.toasts.fail"));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const messages = {
|
|||||||
signup: {
|
signup: {
|
||||||
title: "Sign up",
|
title: "Sign up",
|
||||||
toasts: {
|
toasts: {
|
||||||
success: "User created successfully! Please login !!!.",
|
success: "User created successfully! Please login!",
|
||||||
fail: "Error creating user. Check the reported data.",
|
fail: "Error creating user. Check the reported data.",
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
|
|||||||
Reference in New Issue
Block a user