mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 05:52:17 +02: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,
|
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(() => {
|
).then(() => {
|
||||||
pokerogueApi.daily.getRankings(category, page)
|
pokerogueApi.daily.getRankings({ category, page })
|
||||||
.then(rankings => {
|
.then(rankings => {
|
||||||
this.page = page;
|
this.page = page;
|
||||||
this.category = category;
|
this.category = category;
|
||||||
|
Loading…
Reference in New Issue
Block a user