Skip to content

Commit 466542c

Browse files
author
Andrew Pols
committed
chore: fix pagination to display 0 of 0 when empty (not 1 of 0)
1 parent 6dc22e9 commit 466542c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/ui/components/Pagination/Pagination.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ const Pagination: React.FC<PaginationProps> = ({
3232
Previous
3333
</button>
3434

35-
<span>
36-
Page {currentPage} of {totalPages}
37-
</span>
35+
<span>{totalPages === 0 ? '0 of 0' : `Page ${currentPage} of ${totalPages}`}</span>
3836

3937
<button
4038
className='pageButton'

0 commit comments

Comments
 (0)