mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-18 02:07:44 +00:00
fix daily api calls in daily-run-scorebard
This commit is contained in:
parent
e620c68b56
commit
673624ae76
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user