Fixed leaderboard next when users dividable by pagesize

This commit is contained in:
s-prechtl 2023-01-24 10:54:17 +01:00
parent 438184f759
commit 2ce3ed9cd7

View file

@ -52,11 +52,11 @@ export default {
title() { title() {
return this.type === "totalplaytime" ? "Total Playtime" : "Highscore"; return this.type === "totalplaytime" ? "Total Playtime" : "Highscore";
}, },
nextPage() { async nextPage() {
if (this.page.length !== this.entriesPerPage) return; if (this.page.length !== this.entriesPerPage) return;
this.pageNumber++; this.pageNumber++;
this.updatePage(); await this.updatePage();
if (this.page.length === 0) { if (this.page.length === 0) {
this.prevPage(); this.prevPage();
} }