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

pull/1957/head
Ajay Kumbhare 2 years ago committed by GitHub
parent d9b3501fae
commit 8ca2dac184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save