Skip to content

Commit d8f42bd

Browse files
committed
Make departureCountry and departureCity required if travel funds needed
Fixes inconsistency in the grant form where `departureCountry` and `departureCity` fields were not enforced as required when the user selects that they need funds for travel (`needsFundsForTravel` is true). These fields are now mandatory in that scenario to ensure all necessary information is collected for travel grant applicants.
1 parent 618daf2 commit d8f42bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/grant-form/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export const GrantForm = ({
587587
{formState.values.needsFundsForTravel === "true" && (
588588
<>
589589
<InputWrapper
590-
required={false}
590+
required={true}
591591
title={
592592
<FormattedMessage id="grants.form.fields.departureCountry" />
593593
}
@@ -616,7 +616,7 @@ export const GrantForm = ({
616616
</InputWrapper>
617617

618618
<InputWrapper
619-
required={false}
619+
required={true}
620620
title={
621621
<FormattedMessage id="grants.form.fields.departureCity" />
622622
}

0 commit comments

Comments
 (0)