From abd1d7b1f3d00164fc9ea9605dbd43f991b1579f Mon Sep 17 00:00:00 2001 From: Drew Volz Date: Sat, 14 Oct 2023 18:12:55 -0600 Subject: [PATCH] restore menu daypart picker --- modules/food-menu/fancy-menu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/food-menu/fancy-menu.tsx b/modules/food-menu/fancy-menu.tsx index 3536eb343a..1ca546e40d 100644 --- a/modules/food-menu/fancy-menu.tsx +++ b/modules/food-menu/fancy-menu.tsx @@ -127,8 +127,8 @@ export function FancyMenu(props: Props): JSX.Element { // reset the filters when the data changes useEffect(() => { let foodItemsArray = Object.values(foodItems) - setFilters(buildFilters(foodItemsArray, menuCorIcons, [meal])) - }, [foodItems, menuCorIcons, meal]) + setFilters(buildFilters(foodItemsArray, menuCorIcons, meals, now)) + }, [foodItems, menuCorIcons, meals, now]) // re-group the food when the data changes useEffect(() => {