Fixed leaderboard next when users dividable by pagesize
This commit is contained in:
parent
438184f759
commit
2ce3ed9cd7
1 changed files with 2 additions and 2 deletions
|
|
@ -52,11 +52,11 @@ export default {
|
|||
title() {
|
||||
return this.type === "totalplaytime" ? "Total Playtime" : "Highscore";
|
||||
},
|
||||
nextPage() {
|
||||
async nextPage() {
|
||||
if (this.page.length !== this.entriesPerPage) return;
|
||||
|
||||
this.pageNumber++;
|
||||
this.updatePage();
|
||||
await this.updatePage();
|
||||
if (this.page.length === 0) {
|
||||
this.prevPage();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue