[BUGFIX] reset rowers

This commit is contained in:
Marie Birner 2023-09-24 10:50:25 +02:00
parent f3b0c74bbc
commit 1ea46760af

View File

@ -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;