Skip to content

Commit

Permalink
Merge pull request #7085 from StoDevX/drew/restore-menu-daypart-picker
Browse files Browse the repository at this point in the history
Restore menu daypart picker
  • Loading branch information
hawkrives authored Oct 15, 2023
2 parents 0f0dea9 + abd1d7b commit 1d0f088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/food-menu/fancy-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 1d0f088

Please sign in to comment.