From 1ea46760afe55c0e2aa09f248e6de2bc8a22980e Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Sun, 24 Sep 2023 10:50:25 +0200 Subject: [PATCH] [BUGFIX] reset rowers --- frontend/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/main.ts b/frontend/main.ts index 7830dbe..a933ef2 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -40,6 +40,7 @@ function selectBoatChange() { const rowers = Number(originalOption.dataset.amount_seats) - 1; choiceObjects['newrower'].config.maxItemCount = rowers; + choiceObjects['newrower'].removeActiveItems(rowers); (rowers === 0 ? choiceObjects['newrower'].disable() : choiceObjects['newrower'].enable()); return opt;