From 48a51d67bc632745212328508f1de2779fc479e6 Mon Sep 17 00:00:00 2001 From: Pyronewbic Date: Mon, 25 May 2026 22:18:34 +0530 Subject: [PATCH] fix: parse PokeWallet sets response from data field --- lib/cards/card-database.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cards/card-database.js b/lib/cards/card-database.js index 054cc70..9a41a71 100644 --- a/lib/cards/card-database.js +++ b/lib/cards/card-database.js @@ -151,7 +151,9 @@ async function fetchPokewalletRarities(setCodesWithoutRarity, timeout = 15000) { }); clearTimeout(timer); if (!res.ok) return map; - pwSets = await res.json(); + const body = await res.json(); + pwSets = body.data || body; + if (!Array.isArray(pwSets)) return map; } catch { return map; }