summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/js/absences.js2
-rw-r--r--assets/js/grades.js2
-rw-r--r--assets/js/gradings.js2
-rw-r--r--assets/js/meals.js4
-rw-r--r--assets/js/teachers.js2
5 files changed, 6 insertions, 6 deletions
diff --git a/assets/js/absences.js b/assets/js/absences.js
index 2ed5fe8..5fbc622 100644
--- a/assets/js/absences.js
+++ b/assets/js/absences.js
@@ -49,7 +49,7 @@ async function loadAbsences(forceRefresh = false) {
];
await Promise.all(promisesToRun);
// If we don't have a list of absences, query it
- if (absences === null || absences === {} || forceRefresh) {
+ if (absences == null || absences == {} || forceRefresh) {
try {
let gsecInstance = new gsec();
await gsecInstance.login(username, password);
diff --git a/assets/js/grades.js b/assets/js/grades.js
index 4c52848..aff62e4 100644
--- a/assets/js/grades.js
+++ b/assets/js/grades.js
@@ -38,7 +38,7 @@ async function loadGrades(force_refresh = false) {
];
await Promise.all(promises_to_run);
// If we don't have a list of grades, fetch it
- if (grades === null || grades === [] || force_refresh) {
+ if (grades == null || grades == [] || force_refresh) {
try {
let gsecInstance = new gsec();
diff --git a/assets/js/gradings.js b/assets/js/gradings.js
index 33fda47..b5bf7b5 100644
--- a/assets/js/gradings.js
+++ b/assets/js/gradings.js
@@ -88,7 +88,7 @@ async function loadGradings(force_refresh = false) {
})
];
await Promise.all(promises_to_run);
- if (gradings === null || gradings === [] || gradings === -1 || force_refresh) {
+ if (gradings == null || gradings == [] || gradings == -1 || force_refresh) {
try {
let gsecInstance = new gsec();
await gsecInstance.login(username, password);
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( () => {
diff --git a/assets/js/teachers.js b/assets/js/teachers.js
index da0a62d..da83c06 100644
--- a/assets/js/teachers.js
+++ b/assets/js/teachers.js
@@ -29,7 +29,7 @@ async function loadTeachers(force_refresh = false) {
];
await Promise.all(promises_to_run);
// If we don't have a list of teachers, query it
- if (teachers === null || teachers === [] || force_refresh) {
+ if (teachers == null || teachers == [] || force_refresh) {
try {
let gsecInstance = new gsec();
await gsecInstance.login(username, password);