From c1856b2eeebf56d7d5a11442691a33349dee520f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20H=C3=A1jek?= Date: Wed, 19 Feb 2025 20:21:17 +0100 Subject: [PATCH] =?UTF-8?q?Pokud=20bylo=20v=20osobn=C3=ADm=20nastaven?= =?UTF-8?q?=C3=AD=20vypnuto=20zobraov=C3=A1n=C3=AD=20pol=C3=A9vky,=20p?= =?UTF-8?q?=C5=99ed=C3=A1val=20se=20do=20funkce=20doAddClickFoodChoice=20s?= =?UTF-8?q?patn=C4=9B=20foodIndex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}