From 94dae5e88a6429d4d14a092c878ec13ef493031c Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Fri, 14 May 2021 16:56:50 +0200 Subject: [PATCH] frontend: Fix page numbering using comma values at some point (fix #76) --- frontend/src/pages/TracksPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/TracksPage.tsx b/frontend/src/pages/TracksPage.tsx index 4fe3006..a6a8a67 100644 --- a/frontend/src/pages/TracksPage.tsx +++ b/frontend/src/pages/TracksPage.tsx @@ -58,7 +58,7 @@ function TrackList({privateTracks}: {privateTracks: boolean}) { const {tracks, tracksCount} = data || {tracks: [], tracksCount: 0} const loading = !data - const totalPages = tracksCount / pageSize + const totalPages = Math.ceil(tracksCount / pageSize) return (