From 315b1c2b21a007d5bc2a1ae3e5837b8e389ecd41 Mon Sep 17 00:00:00 2001 From: LiviaValenti Date: Mon, 15 Jan 2024 18:28:18 +0100 Subject: [PATCH] fix: main board required when not present --- frontend/src/components/ApplicationForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/ApplicationForm.tsx b/frontend/src/components/ApplicationForm.tsx index dc8c229..6d0b125 100644 --- a/frontend/src/components/ApplicationForm.tsx +++ b/frontend/src/components/ApplicationForm.tsx @@ -298,7 +298,7 @@ export function Form({ committees }: IFormProps) { description='Nevn gjerne alder, klasse, studieretning, erfaring og motivasjon' label={`Søknadstekst for ${MAIN_BOARD_NAME}`} autosize - required + required={isToMainBoard && form.values.committees.length > 1} maxRows={10} minRows={3} onBlur={() => form.validateField('main_board_text')}