fix daily api calls in daily-run-scorebard

This commit is contained in:
flx-sta 2024-10-04 17:02:08 -07:00
parent e620c68b56
commit 673624ae76

View File

@ -192,9 +192,9 @@ export class DailyRunScoreboard extends Phaser.GameObjects.Container {
}
Utils.executeIf(category !== this.category || this.pageCount === undefined,
() => pokerogueApi.daily.getRankingsPageCount(category).then(count => this.pageCount = count)
() => pokerogueApi.daily.getRankingsPageCount({ category }).then(count => this.pageCount = count)
).then(() => {
pokerogueApi.daily.getRankings(category, page)
pokerogueApi.daily.getRankings({ category, page })
.then(rankings => {
this.page = page;
this.category = category;