Skip to content

Commit e14b7f3

Browse files
committed
fix: lowercase card ID when matching PokeWallet rarities
TCGdex JA uses uppercase set codes (SV9-001) while PokeWallet map keys are lowercase (sv9-1). Normalize to lowercase for matching.
1 parent 48a51d6 commit e14b7f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cards/card-database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ async function enrichWithPokewalletRarities(index) {
398398
let enriched = 0;
399399
for (const card of index) {
400400
if (card.rarity) continue;
401-
const normId = normalizeCardId(card.id);
401+
const normId = normalizeCardId(card.id).toLowerCase();
402402
const rarity = pwRarities.get(normId);
403403
if (rarity) {
404404
card.rarity = rarity;

0 commit comments

Comments
 (0)