diff options
author | rstular <rok@stular.eu> | 2020-05-17 22:22:22 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-17 22:28:02 +0200 |
commit | 7b0e9737328c2dc5a0ff1bd063cd7818706256c3 (patch) | |
tree | 168a4db2131a5125cc031659b6ce80810b10c0f9 /assets/js/meals.js | |
parent | styling changes (diff) | |
download | beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.gz beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.bz2 beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.lz beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.xz beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.tar.zst beziapp-7b0e9737328c2dc5a0ff1bd063cd7818706256c3.zip |
Diffstat (limited to '')
-rw-r--r-- | assets/js/meals.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/meals.js b/assets/js/meals.js index 0a5313a..e9b3af8 100644 --- a/assets/js/meals.js +++ b/assets/js/meals.js @@ -49,7 +49,7 @@ async function getToken(callback, callbackparams = []) { type: "POST", success: (dataauth) => { - if(dataauth === null || dataauth.error == true) { + if(dataauth == null || dataauth.error == true) { UIAlert(D("authenticationError"), "getToken(): response error or null"); localforage.setItem("logged_in_lopolis", false).then( function(){ checkLogin(); @@ -97,7 +97,7 @@ async function getMenus(dataauth, callback, callbackparams = []) { type: "POST", success: (meals) => { - if(meals === null || meals.error == true) { + if(meals == null || meals.error == true) { UIAlert( D("errorGettingMenus"), "getMenus(): response error or null"); setLoading(false); localforage.setItem("logged_in_lopolis", false).then( () => { |