diff --git a/src/app/storefront/StoreFrontNavBar.tsx b/src/app/storefront/StoreFrontNavBar.tsx index c164482..7621b17 100644 --- a/src/app/storefront/StoreFrontNavBar.tsx +++ b/src/app/storefront/StoreFrontNavBar.tsx @@ -110,7 +110,7 @@ export default function StoreFrontNavBar(props: { setInd(newInd); changeDisplay(1, newInd); } - setReachedEnd(ind + 5 < buttonCategories.length); + setReachedEnd(newInd + 5 <= buttonCategories.length); setReachedStart(true); };