From 4b5404e04f394001de4a6930e1fc431fa402b309 Mon Sep 17 00:00:00 2001 From: Monique Cheng Date: Sun, 21 Apr 2024 19:53:02 -0700 Subject: [PATCH 1/2] fixed navbar --- src/app/storefront/StoreFrontNavBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/storefront/StoreFrontNavBar.tsx b/src/app/storefront/StoreFrontNavBar.tsx index c1644826..18a1b704 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); }; From f8a2b39daa459b9bf2d6671192fad54454e3e544 Mon Sep 17 00:00:00 2001 From: Monique Cheng Date: Sun, 21 Apr 2024 19:57:10 -0700 Subject: [PATCH 2/2] fixed navbar --- src/app/storefront/StoreFrontNavBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/storefront/StoreFrontNavBar.tsx b/src/app/storefront/StoreFrontNavBar.tsx index 18a1b704..7621b175 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(newInd + 5 < buttonCategories.length); + setReachedEnd(newInd + 5 <= buttonCategories.length); setReachedStart(true); };