Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/MAIN-B-22133' into INT-B-22133-P…
Browse files Browse the repository at this point in the history
…rime-Simulator-Update-Port
  • Loading branch information
brianmanley-caci committed Jan 3, 2025
2 parents 7cf5f66 + 0c48d41 commit 2ada332
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const PrimeUIUpdateInternationalFuelSurchargeForm = ({ onUpdateServiceItem, move
.max(4, 'Port Code must be 3-4 characters.'),
})}
>
{({ handleSubmit }) => (
{({ handleSubmit, setFieldValue }) => (
<Form className={classnames(formStyles.form)}>
<FormGroup>
<div className={styles.IntlFsc}>
Expand Down Expand Up @@ -120,6 +120,9 @@ const PrimeUIUpdateInternationalFuelSurchargeForm = ({ onUpdateServiceItem, move
labelHint="Required"
maxLength="4"
isDisabled={serviceItem.status !== SERVICE_ITEM_STATUSES.APPROVED}
onBlur={(e) => {
setFieldValue('portCode', e.target.value.toUpperCase());
}}
/>
</SectionWrapper>
<WizardNavigation
Expand Down

0 comments on commit 2ada332

Please sign in to comment.