diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-01-25 17:03:25 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-01-25 17:03:25 +0700 |
| commit | e340f5c4f4c47cde90e7676fcf71b55ef50e7c23 (patch) | |
| tree | 655c4f5d38b89bda2cfd06ff198fa1e2d2be1c9d /src/components | |
| parent | a4678e51e43c57cab4a28121bb9d7f4b39a064b7 (diff) | |
no message
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/elements/Pagination.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/elements/Pagination.js b/src/components/elements/Pagination.js index d30b4f16..ff2a8462 100644 --- a/src/components/elements/Pagination.js +++ b/src/components/elements/Pagination.js @@ -7,7 +7,7 @@ export default function Pagination({ pageCount, currentPage, url }) { let dotsNextPage = false; let urlParameterPrefix = url.includes('?') ? '&' : '?'; - return pageCount > 0 && ( + return pageCount > 1 && ( <div className="pagination"> {Array.from(Array(pageCount)).map((v, i) => { let page = i + 1; |
