fix: error in toast message after signup

This commit is contained in:
canove
2020-08-20 18:20:45 -03:00
parent 83ed1752bb
commit d8346f902c
2 changed files with 3 additions and 3 deletions

View File

@@ -67,10 +67,10 @@ const SignUp = () => {
e.preventDefault();
try {
await api.post("/auth/signup", user);
toast.success(i18n.t("signup.toast.success"));
toast.success(i18n.t("signup.toasts.success"));
history.push("/login");
} catch (err) {
toast.error(i18n.t("signup.toast.fail"));
toast.error(i18n.t("signup.toasts.fail"));
}
};

View File

@@ -4,7 +4,7 @@ const messages = {
signup: {
title: "Sign up",
toasts: {
success: "User created successfully! Please login !!!.",
success: "User created successfully! Please login!",
fail: "Error creating user. Check the reported data.",
},
form: {