Skip to content

Commit

Permalink
chore: added additional validation inidicator for arrival type
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneSchroederLJ committed May 16, 2024
1 parent 4c7c024 commit 4daf393
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ export const DeliveryInformationModal = ({
{...params}
label="Arrival Type*"
placeholder="Select the type of departure"
error={formError && !temporaryDelivery?.arrivalType}
error={formError && (
!temporaryDelivery?.arrivalType ||
(temporaryDelivery?.arrivalType === 'actual-arrival' && temporaryDelivery?.departureType !== 'actual-departure')
)}
/>
)}
></Autocomplete>
Expand Down

0 comments on commit 4daf393

Please sign in to comment.