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

Jak to dnes vidíš s obědem?

- @@ -226,9 +225,6 @@ 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 683124a..6f898d1 100644 --- a/server/src/service.ts +++ b/server/src/service.ts @@ -256,6 +256,7 @@ 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]) {