frontend: Fix page numbering using comma values at some point (fix #76)

This commit is contained in:
Paul Bienkowski 2021-05-14 16:56:50 +02:00
parent fb8e622d7c
commit 94dae5e88a

View file

@ -58,7 +58,7 @@ function TrackList({privateTracks}: {privateTracks: boolean}) {
const {tracks, tracksCount} = data || {tracks: [], tracksCount: 0} const {tracks, tracksCount} = data || {tracks: [], tracksCount: 0}
const loading = !data const loading = !data
const totalPages = tracksCount / pageSize const totalPages = Math.ceil(tracksCount / pageSize)
return ( return (
<div> <div>