diff --git a/static/js/main.js b/static/js/main.js index 023154d..97da4dd 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -89,7 +89,7 @@ function get_admin(type) { success: function (data) { if(data.success) { switch (type) { - case: "prank": + case "prank": let doneCnt = 0; let prankData = []; for (prankUid in data.prankData) { @@ -99,7 +99,7 @@ function get_admin(type) { prankData.sort((a, b) => Date(a.date) - Date(b.date)); for (entry in prankData) { switch (prankData[entry].type) { - case: "crêpe": + case "crêpe": if (prankData[entry].state == "pending" || prankData[entry].state == "accepted") { $("#admin-content").insertAdjacentHTML("beforeend", ` @@ -124,7 +124,7 @@ function get_admin(type) { doneCnt++; } break; - case: "kidnap": + case "kidnap": // Not Handle break; } @@ -135,7 +135,7 @@ function get_admin(type) { `); break; - case: "treasure": + case "treasure": let treasureData = []; for (treasureUid in data.treasureData) { data.treasureData[treasureUid].treasureUid = treasureUid; @@ -163,7 +163,7 @@ function get_admin(type) { } } break; - case: "activity": + case "activity": $("#admin-content").insertAdjacentHTML("beforeend", `