This commit is contained in:
JCEEE
2026-09-14 21:29:10 +01:00
parent 49658bd791
commit f9fa99f5ff
5 changed files with 31 additions and 24 deletions
@@ -550,9 +550,10 @@
const name = bonusConfigs.find((b: BonusConfig) => b.id === r.bonusConfigId)?.name || r.label;
map.set(name, (map.get(name) || 0) + 1);
}
// Only badge recurring/multiple bonuses — a single occurrence (×1) is
// already obvious from the wallet, so it just adds noise here.
return [...map.entries()].map(([name, count]) => ({ name, count })).filter((t) => t.count > 1);
// Badge every bonus earned this week — including a single occurrence
// (×1): the hero is the child's only at-a-glance signal, so nothing
// earned should stay invisible here.
return [...map.entries()].map(([name, count]) => ({ name, count }));
});
let anyWeekBonuses = $derived(weekRewards.length > 0);