NOMERGE: Příprava výběrů více možností
This commit is contained in:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user