Fix broken error messages

This commit is contained in:
Yang Luo
2024-02-27 22:48:33 +08:00
parent b0d87f60ae
commit 4d9c81ef96
5 changed files with 5 additions and 5 deletions

View File

@ -147,7 +147,7 @@ export function sendCode(captchaType, captchaToken, clientSecret, method, countr
Setting.showMessage("success", i18next.t("user:Verification code sent"));
return true;
} else {
Setting.showMessage("error", i18next.t("user:" + res.msg));
Setting.showMessage("error", res.msg);
return false;
}
});