diff --git a/frontend/main.ts b/frontend/main.ts index 30c14ac..e66a2e6 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -52,7 +52,7 @@ function selectBoatChange() { (option: HTMLOptionElement) => option.value === value )[0]; - const rowers = Number(originalOption.dataset.amount_seats) - 1; + const rowers = Number(originalOption.dataset.amount_seats); const isShipmasterSteering = originalOption.dataset.default_shipmaster_only_steering; setMaxAmountRowers(rowers,isShipmasterSteering); @@ -137,7 +137,7 @@ function initBoatActions() { Array.prototype.forEach.call(boatSelects, (select: HTMLInputElement) => { select.addEventListener('click', function() { if(select.dataset.seats) { - const rowers = Number(select.dataset.seats) - 1; + const rowers = Number(select.dataset.seats); const isShipmasterSteering = select.dataset.default_shipmaster_only_steering; setMaxAmountRowers(rowers, isShipmasterSteering);