From 468def461c537bf290acf3aa110ccb15adc0d182 Mon Sep 17 00:00:00 2001 From: martbost Date: Wed, 7 Oct 2026 17:30:57 -0500 Subject: [PATCH] Tester view of a coming-soon game drops the soon object so the Play button renders (showed [object Object]) Co-Authored-By: Claude Fable 5.1 --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index e8ed487..7cf0846 100644 --- a/server.js +++ b/server.js @@ -3410,7 +3410,7 @@ const server = http.createServer(async (req, res) => { // testers (env GAMES_TESTERS, usernames or emails; Marty 2026-10-07) get the Play button on a coming-soon game before it opens const tester = isGameTester(acct, s.email); if (g.soon && day < g.soon.opens && !tester) { out.push(Object.assign({}, g, { live: false, preview: false, soon: g.soon.label, play: null })); continue; } // coming soon: shown to all, not playable - if (g.soon && day < g.soon.opens && tester) { out.push(Object.assign({}, g, { live: false, preview: true, previewNote: 'testing · ' + g.soon.label.toLowerCase() })); continue; } + if (g.soon && day < g.soon.opens && tester) { out.push(Object.assign({}, g, { live: false, preview: true, previewNote: 'testing · ' + g.soon.label.toLowerCase(), soon: null })); continue; } // soon cleared: the client prints a soon card's label where the Play button goes const ss = seasonState(g.season, day, admin); if (ss === 'hidden') continue; const seasonPreview = ss === 'preview'; const isLive = live.has(g.slug); if (!isLive && !admin && !tester) continue;