fix: incorrect localization key for sign-up failure message (#1953)

This commit is contained in:
Ajay Kumbhare 2023-07-14 19:13:46 +05:30 committed by GitHub
parent d9b3501fae
commit 8ca2dac184
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,11 +104,11 @@ const Auth = () => {
if (user) {
window.location.href = "/";
} else {
toast.error(t("common.signup-failed"));
toast.error(t("message.signup-failed"));
}
} catch (error: any) {
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();
};