Skip to content

Commit 39f5bb2

Browse files
committed
chore: show "0 of 0" when empty, not "1 of 0"
1 parent 93704e6 commit 39f5bb2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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>Page {totalPages === 0 ? '0 of 0' : `${currentPage} of ${totalPages}`}</span>
3836

3937
<button
4038
className='pageButton'

0 commit comments

Comments
 (0)