@@ -146,9 +146,7 @@ export const GrantForm = ({
146146 const inputPlaceholderText = useTranslatedMessage ( "input.placeholder" ) ;
147147 const { user, loading : loadingUser } = useCurrentUser ( { } ) ;
148148 const [ formState , formOptions ] = useFormState < GrantFormFields > (
149- {
150- needsFundsForTravel : "false" ,
151- } ,
149+ { } ,
152150 {
153151 withIds : true ,
154152 } ,
@@ -480,8 +478,12 @@ export const GrantForm = ({
480478 description = {
481479 < FormattedMessage id = "grants.form.fields.needsFundsForTravel.description" />
482480 }
481+ required = { true }
483482 >
484- < Select { ...select ( "needsFundsForTravel" ) } >
483+ < Select { ...select ( "needsFundsForTravel" ) } required = { true } >
484+ < FormattedMessage id = "global.selectOption" >
485+ { ( msg ) => < option value = "" > { msg } </ option > }
486+ </ FormattedMessage >
485487 < FormattedMessage id = "global.no" >
486488 { ( msg ) => < option value = "false" > { msg } </ option > }
487489 </ FormattedMessage >
@@ -496,8 +498,12 @@ export const GrantForm = ({
496498 description = {
497499 < FormattedMessage id = "grants.form.fields.needVisa.description" />
498500 }
501+ required = { true }
499502 >
500- < Select { ...select ( "needVisa" ) } >
503+ < Select { ...select ( "needVisa" ) } required = { true } >
504+ < FormattedMessage id = "global.selectOption" >
505+ { ( msg ) => < option value = "" > { msg } </ option > }
506+ </ FormattedMessage >
501507 < FormattedMessage id = "global.no" >
502508 { ( msg ) => < option value = "false" > { msg } </ option > }
503509 </ FormattedMessage >
@@ -514,8 +520,12 @@ export const GrantForm = ({
514520 description = {
515521 < FormattedMessage id = "grants.form.fields.needAccommodation.description" />
516522 }
523+ required = { true }
517524 >
518- < Select { ...select ( "needAccommodation" ) } >
525+ < Select { ...select ( "needAccommodation" ) } required = { true } >
526+ < FormattedMessage id = "global.selectOption" >
527+ { ( msg ) => < option value = "" > { msg } </ option > }
528+ </ FormattedMessage >
519529 < FormattedMessage id = "global.no" >
520530 { ( msg ) => < option value = "false" > { msg } </ option > }
521531 </ FormattedMessage >
0 commit comments