summaryrefslogtreecommitdiffstats
path: root/dist/js/meals.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/js/meals.js')
-rw-r--r--dist/js/meals.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/js/meals.js b/dist/js/meals.js
index e9b3af8..0f4230e 100644
--- a/dist/js/meals.js
+++ b/dist/js/meals.js
@@ -278,8 +278,10 @@ async function lopolisLogin() {
}
},
- error: () => {
- UIAlert( D("loginError"), "lopolisLogin(): ajax.error");
+ error: (xhr) => {
+ if (xhr.status !== 401) {
+ UIAlert( D("loginError"), "lopolisLogin(): ajax.error");
+ }
setLoading(false);
}
});