fix: incorrect localization key for sign-up failure message (#1953)
This commit is contained in:
parent
d9b3501fae
commit
8ca2dac184
1 changed files with 2 additions and 2 deletions
|
|
@ -104,11 +104,11 @@ const Auth = () => {
|
||||||
if (user) {
|
if (user) {
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
} else {
|
} else {
|
||||||
toast.error(t("common.signup-failed"));
|
toast.error(t("message.signup-failed"));
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
toast.error(error.response.data.message || error.message || t("common.signup-failed"));
|
toast.error(error.response.data.message || error.message || t("message.signup-failed"));
|
||||||
}
|
}
|
||||||
actionBtnLoadingState.setFinish();
|
actionBtnLoadingState.setFinish();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue