From 23a623bdc9607977369ae93de67dd187ffab8782 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Tue, 23 Apr 2024 22:36:51 +0200 Subject: [PATCH] [TASK] add etsch edge case js --- frontend/main.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/main.ts b/frontend/main.ts index a7497fd..8a71157 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -154,8 +154,15 @@ function selectBoatChange() { if (event.detail.customProperties.owner) { choiceObjects["newrower"].setChoiceByValue( - event.detail.customProperties.owner + "", + event.detail.customProperties.owner.toString(), ); + + if(event.detail.value === '36') { + /** custom code for Etsch */ + choiceObjects["newrower"].setChoiceByValue( + "81", + ); + } } const inputElement = document.getElementById(