Fixed the error message in the Javascript validateAsyncCodeIsDuplicated function in currency-form.js.

This commit is contained in:
依瑪貓 2023-02-07 17:59:50 +08:00
parent 1d61fa93d3
commit 5737d6cef4

View File

@ -133,7 +133,7 @@ function validateAsyncCodeIsDuplicated(isSubmission, key) {
const result = JSON.parse(this.responseText); const result = JSON.parse(this.responseText);
if (result["exists"]) { if (result["exists"]) {
field.classList.add("is-invalid"); field.classList.add("is-invalid");
error.innerText = _("Code conflicts with another currency."); error.innerText = A_("Code conflicts with another currency.");
if (isSubmission) { if (isSubmission) {
isAsyncValid[key] = false; isAsyncValid[key] = false;
} }