Skip to content

Commit

Permalink
Use the opposite operator (#1851)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf authored and dpatil-magento committed Oct 7, 2019
1 parent 712cc12 commit 819cd14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/peregrine/lib/talons/Pagination/usePagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export const usePagination = props => {
}
}, [currentPage, setPage, totalPages]);

const isActiveLeft = !(currentPage === 1);
const isActiveRight = !(currentPage === totalPages);
const isActiveLeft = currentPage !== 1;
const isActiveRight = currentPage !== totalPages;

const tiles = useMemo(() => {
const tiles = [];
Expand Down

0 comments on commit 819cd14

Please sign in to comment.