Minor error with factoring ifelse

This commit is contained in:
Jeremy Zhang 2017-04-04 06:22:03 +00:00
parent ba54af770c
commit a95cf3591b

View File

@ -197,8 +197,7 @@ function run_fetch_routine() {
if (data.status == 403) {
$('#loginmodal').modal('open');
Materialize.toast('Authentication error! You have been banned.', 10000);
}
else if (data.status == 401) {
} else if (data.status == 401) {
$('#loginmodal').modal('open');
Materialize.toast('Session expired! You have been logged out.', 10000);
} else {