From 97ffc142b293f5d6072c1d24ce5ae42d5ae17af1 Mon Sep 17 00:00:00 2001 From: Fredrik Hansteen Date: Mon, 20 Jan 2025 20:13:58 +0100 Subject: [PATCH] Added conditional i tillegg check (#359) --- components/form/ApplicationForm.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/form/ApplicationForm.tsx b/components/form/ApplicationForm.tsx index 02ed565..a286f31 100644 --- a/components/form/ApplicationForm.tsx +++ b/components/form/ApplicationForm.tsx @@ -208,9 +208,9 @@ export const ApplicationForm = (props: Props) => { ["Ja", "ja"], ["Nei", "nei"], ]} - label={`Ønsker du å søke ${changeDisplayName( - committee - )} i tillegg?`} + label={`Ønsker du å søke ${changeDisplayName(committee)} ${ + availableCommittees.length > 1 ? "i tillegg?" : "?" + }`} updateInputValues={(value: string) => addOptionalCommittee(committee, value) }