Revert "NOMERGE: Příprava výběrů více možností"

This reverts commit c68141575f.
This commit is contained in:
2023-06-29 07:35:08 +02:00
parent 4c9a868d6b
commit d21291c643
2 changed files with 4 additions and 1 deletions

View File

@@ -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]) {