diff --git a/client/src/App.tsx b/client/src/App.tsx index 33ae9ad..56fa12e 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -343,10 +343,11 @@ function App() { if (menu?.closed) { content =

Zavřeno

} else if (menu?.food?.length > 0) { + const hideSoups = settings?.hideSoups; content = - {menu.food.filter(f => (settings?.hideSoups ? !f.isSoup : true)).map((f: any, index: number) => - doAddClickFoodChoice(location, index)}> + {menu.food.filter(f => (hideSoups ? !f.isSoup : true)).map((f: any, index: number) => + doAddClickFoodChoice(location, hideSoups ? index + 1 : index)}>
{f.amount} {f.name} {f.price}