From d144c55bf7d3ccba13ece4e5278e2ef26c29cd18 Mon Sep 17 00:00:00 2001 From: batmanisko Date: Wed, 5 Mar 2025 18:55:56 +0100 Subject: [PATCH] feat: #11 je tohle feat?, pridani poctu lidi k restauraci --- client/src/App.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index e1c2ef2..5e3e947 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -476,9 +476,13 @@ function App() { return; } const locationLoginList = Object.entries(loginObject); + const locationPickCount = locationLoginList.length return ( - {locationName} + {(locationPickCount?? 0) > 1 ? ( + {locationName} ({locationPickCount}) + ) : ( + {locationName})}