fix: use s.code directly as location select value
This commit is contained in:
+1
-2
@@ -669,11 +669,10 @@ async function initServerLocations() {
|
||||
|
||||
servers.forEach(function (s) {
|
||||
const server = s.server || "";
|
||||
const serverCode = s.code || server.toLowerCase().replace(/\s+/g, "-");
|
||||
const available = parseInt(s["Seats Available"], 10) || 0;
|
||||
const label = server.charAt(0).toUpperCase() + server.slice(1);
|
||||
const opt = document.createElement("option");
|
||||
opt.value = serverCode;
|
||||
opt.value = s.code || "";
|
||||
|
||||
if (available <= 0) {
|
||||
// No seats — red, disabled, cannot select
|
||||
|
||||
Reference in New Issue
Block a user