From 2ce3ed9cd70b4b4720c8f9bd53b6615ef1d90a1f Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Tue, 24 Jan 2023 10:54:17 +0100 Subject: [PATCH] Fixed leaderboard next when users dividable by pagesize --- frontend/src/components/Leaderboard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Leaderboard.vue b/frontend/src/components/Leaderboard.vue index 41ec4d1..f5ac5d9 100644 --- a/frontend/src/components/Leaderboard.vue +++ b/frontend/src/components/Leaderboard.vue @@ -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(); }