fix single pagers

This commit is contained in:
Mary Hipp
2024-06-20 15:17:20 -04:00
parent e4738b4bee
commit a3c736c0dc

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) {