Merge pull request #3616 from Opaque02/iv-scanner-stats-fix

[Bug] Fixed issue with falsy issue within condition to get a stat for IV scanner
This commit is contained in:
Frederico Santos 2024-08-18 17:46:47 +01:00 committed by GitHub
commit c2b79a803d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ export default class BattleMessageUiHandler extends MessageUiHandler {
highestIv = ivs[s];
}
});
if (shownStat) {
if (shownStat !== null && shownStat !== undefined) {
shownStats.push(shownStat);
statsPool.splice(statsPool.indexOf(shownStat), 1);
}