accounts: descriptive error when no template found

This commit is contained in:
Harvey Tindall
2023-09-07 14:04:32 +01:00
parent db21131185
commit 468b2f3284
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1794,7 +1794,7 @@ export class accountsList {
if (req.readyState == 4) {
toggleLoader(button);
if (req.status == 400) {
window.notifications.customError("unknownError", window.lang.notif("errorUnknown"));
window.notifications.customError("noReferralTemplateError", window.lang.notif("errorNoReferralTemplate"));
} else if (req.status == 200 || req.status == 204) {
window.notifications.customSuccess("enableReferralsSuccess", window.lang.quantity("appliedSettings", list.length));
}