diff --git a/client/src/App.tsx b/client/src/App.tsx index a000a66..745f1ed 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -217,6 +217,7 @@ function App() {

Jak to dnes vidíš s obědem?

+ @@ -225,6 +226,9 @@ function App() { +

+ Aktuálně je možné vybrat pouze jednu variantu. +

{Object.keys(data.choices).length > 0 ? diff --git a/server/src/service.ts b/server/src/service.ts index 6f898d1..683124a 100644 --- a/server/src/service.ts +++ b/server/src/service.ts @@ -256,7 +256,6 @@ export function updateChoice(login: string, choice: Locations | null) { initIfNeeded(); const today = formatDate(getToday()); let data: ClientData = db.get(today); - // TODO pokud už choice najdeme, tak jí smazat, jinak jí přidat data = removeChoice(login, data); if (choice !== null) { if (!data.choices?.[choice]) {