fix single pagers

This commit is contained in:
Mary Hipp 2024-06-20 15:17:20 -04:00 committed by psychedelicious
parent c9c39c02b6
commit 488bf21925

View File

@ -22,7 +22,7 @@ export const useGalleryPagination = () => {
if (!count) {
return false;
}
return currentPage < pages;
return currentPage + 1 < pages;
}, [count, currentPage, pages]);
const isPrevEnabled = useMemo(() => {
if (!count) {