Skip to content

Commit

Permalink
Remove type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed May 24, 2024
1 parent a4774f2 commit 37fd476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/pages/restaurants/[restaurant]/menus/[menu].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const RestaurantMenu = ({ name, menus }: { name: string; menus: any }) => {
if (error) throw error;

if (data) {
setMenuName(data.name as string);
setMenuName(data.name);
setMenuData(data.dishes);
}
} catch (error) {
Expand Down

0 comments on commit 37fd476

Please sign in to comment.