diff --git a/static/js/global_js.js b/static/js/global_js.js index d85c2ce..0aec78d 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -9,7 +9,7 @@ function getNewMessageSession (){ r[o[i].split("=")[0]] = o[i].split("=")[1]; } let prs_ = null - if (r['user_alerts'] !== null || r['user_alerts']){ + if (r['user_alerts'] !== undefined){ let prs = JSON.parse(r['user_alerts']) prs_ = JSON.parse(prs) } else {