Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Dec 1, 2023
1 parent 2f4b098 commit 5a8579d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export const PaginationBar: React.FC<PaginationBarProps> = ({
(pageIndex + 1) * pageSize,
)}`
: totalItems;
const pageCount = totalItems !== undefined ? Math.ceil(totalItems / pageSize) : 1;
const pageCount =
totalItems !== undefined ? Math.ceil(totalItems / pageSize) : 1;
const hasPreviousPage = pageIndex > 0;
const hasNextPage = totalItems !== undefined && pageIndex < pageCount - 1;

Expand Down
Empty file.

0 comments on commit 5a8579d

Please sign in to comment.