Skip to content

Commit

Permalink
Pass empty string as value for default business name dropdown in both…
Browse files Browse the repository at this point in the history
… threshold and other exceptions (#438)
  • Loading branch information
edmondsgarrett authored Feb 28, 2025
1 parent aa6afd0 commit 1c3e9cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const ExceptionForm: React.FC<{ index: number }> = ({ index }) => {
name={`exceptions[${index}].businessName`}
id={`exceptions[${index}].businessName`}
>
<option value="0">Select a Business Name</option>
<option value="">Select a Business Name</option>
{submitterData?.submitters?.map((submitter: Entities) => (
<option
value={submitter.submitter_id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const ExceptionFormPage: React.FC = () => {
}),
otherExceptionBusinessName: Yup.mixed().when('exceptionType', {
is: 'other',
then: () => Yup.number().min(1, 'Required').required('Required'),
then: () => Yup.number().min(0, 'Required').required('Required'),
otherwise: () => Yup.mixed().strip(),
}),
});
Expand Down Expand Up @@ -312,7 +312,7 @@ export const ExceptionFormPage: React.FC = () => {
name={`otherExceptionBusinessName`}
id={`otherExceptionBusinessName`}
>
<option>-- Select a Business --</option>
<option value="">-- Select a Business --</option>
{submitterData?.submitters?.map(
(submitter: Entities) => (
<option
Expand Down

0 comments on commit 1c3e9cf

Please sign in to comment.