Skip to content

Commit

Permalink
Merge pull request #18 from canopas/deploy-website-using-s3
Browse files Browse the repository at this point in the history
Set menu name for dishes reels view
  • Loading branch information
cp-dharti-r authored May 24, 2024
2 parents 8d6fcc8 + 37fd476 commit 11d3a75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/pages/restaurants/[restaurant]/menus/[menu].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ const RestaurantMenu = ({ name, menus }: { name: string; menus: any }) => {
.filter((item: any) => item.id === suffix!)[0]
.data.some((item: any) => item.id == atob(menuSuffix!))
) {
setMenuName(
menuDishesState
.filter((item: any) => item.id === suffix!)[0]
.data.filter((item: any) => item.id == atob(menuSuffix!))[0].name
);
setMenuData(
menuDishesState
.filter((item: any) => item.id === suffix!)[0]
Expand Down

0 comments on commit 11d3a75

Please sign in to comment.