@@ -147,7 +147,6 @@ export const GrantForm = ({
147147 const { user, loading : loadingUser } = useCurrentUser ( { } ) ;
148148 const [ formState , formOptions ] = useFormState < GrantFormFields > (
149149 {
150- needsFundsForTravel : "false" ,
151150 } ,
152151 {
153152 withIds : true ,
@@ -480,8 +479,13 @@ export const GrantForm = ({
480479 description = {
481480 < FormattedMessage id = "grants.form.fields.needsFundsForTravel.description" />
482481 }
482+ required = { true }
483483 >
484- < Select { ...select ( "needsFundsForTravel" ) } >
484+ < Select { ...select ( "needsFundsForTravel" ) }
485+ required = { true } >
486+ < FormattedMessage id = "global.selectOption" >
487+ { ( msg ) => < option value = "" > { msg } </ option > }
488+ </ FormattedMessage >
485489 < FormattedMessage id = "global.no" >
486490 { ( msg ) => < option value = "false" > { msg } </ option > }
487491 </ FormattedMessage >
@@ -496,8 +500,13 @@ export const GrantForm = ({
496500 description = {
497501 < FormattedMessage id = "grants.form.fields.needVisa.description" />
498502 }
503+ required = { true }
499504 >
500- < Select { ...select ( "needVisa" ) } >
505+ < Select { ...select ( "needVisa" ) }
506+ required = { true } >
507+ < FormattedMessage id = "global.selectOption" >
508+ { ( msg ) => < option value = "" > { msg } </ option > }
509+ </ FormattedMessage >
501510 < FormattedMessage id = "global.no" >
502511 { ( msg ) => < option value = "false" > { msg } </ option > }
503512 </ FormattedMessage >
@@ -514,8 +523,13 @@ export const GrantForm = ({
514523 description = {
515524 < FormattedMessage id = "grants.form.fields.needAccommodation.description" />
516525 }
526+ required = { true }
517527 >
518- < Select { ...select ( "needAccommodation" ) } >
528+ < Select { ...select ( "needAccommodation" ) }
529+ required = { true } >
530+ < FormattedMessage id = "global.selectOption" >
531+ { ( msg ) => < option value = "" > { msg } </ option > }
532+ </ FormattedMessage >
519533 < FormattedMessage id = "global.no" >
520534 { ( msg ) => < option value = "false" > { msg } </ option > }
521535 </ FormattedMessage >
0 commit comments