Skip to content

Commit

Permalink
Merge pull request #67 from fs-jun24-team-3/hotfix/pagination-buttons…
Browse files Browse the repository at this point in the history
…-conditional-rendering-in-catalog

hotfix/Improve conditional rendering of pagination button in Catalog
  • Loading branch information
NIKaragu authored Sep 24, 2024
2 parents 5006eb4 + b5e7762 commit 3110e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Catalog/Catalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const Catalog: React.FC<Props> = ({ items, title, isFiltered }) => {
</div>
))}
</div>
{itemsPerPage !== 'all' && (
{itemsPerPage !== 'all' && items.length > itemsPerPage && (
<div className={styles.phones__pagination}>
<button
className={styles.phones__pagination__arr}
Expand Down

0 comments on commit 3110e57

Please sign in to comment.