Fix potential divide by zero error

Thank you to KimJeongSun for bringing this up

Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
This commit is contained in:
RedstonewolfX 2024-08-21 06:57:59 -04:00 committed by GitHub
parent 0be82b32dd
commit 103ad807ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2415,7 +2415,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
} }
}); });
this.starterSelectScrollBar.setPages(Math.ceil(this.filteredStarterContainers.length / 9)); this.starterSelectScrollBar.setPages(Math.max(Math.ceil(this.filteredStarterContainers.length / 9)), 1);
this.starterSelectScrollBar.setPage(0); this.starterSelectScrollBar.setPage(0);
// sort // sort