From 4505c1155b3025f3fb6771af2d9aca0f22aba507 Mon Sep 17 00:00:00 2001 From: gavindiaz Date: Tue, 21 Jul 2026 18:30:18 +0800 Subject: [PATCH] Fix market JSON dump: was guarded by priceToBeatState.value === null but latching at line 589-595 sets value before line 622 check runs. JSON files never written. Remove the broken guard; dumpedMarkets.has(slug) already ensures once-per-market. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 4c8b8a9..de65f31 100644 --- a/src/index.js +++ b/src/index.js @@ -619,7 +619,7 @@ async function main() { const currentPriceValue = currentPriceBaseLine.split(": ")[1] ?? currentPriceBaseLine; const currentPriceLine = kv("CURRENT PRICE:", `${currentPriceValue} (${ptbDeltaText})`); - if (poly.ok && poly.market && priceToBeatState.value === null) { + if (poly.ok && poly.market) { const slug = safeFileSlug(poly.market.slug || poly.market.id || "market"); if (slug && !dumpedMarkets.has(slug)) { dumpedMarkets.add(slug);