Seasons: Fix badges being awarded incorrectly

This commit is contained in:
Mia 2024-08-21 22:37:41 -05:00
parent 5b5653c8db
commit 7ea985eb91

View File

@ -159,7 +159,7 @@ export async function updateBadgeholders() {
if (!data.badgeholders[period]) {
data.badgeholders[period] = {};
}
for (const formatName of data.formatSchedule[findPeriod()]) {
for (const formatName of data.formatSchedule[period]) {
const formatid = `gen${Dex.gen}${formatName}`;
const response = await getLadderTop(formatid);
if (!response) continue; // ??