Skip to content

Commit

Permalink
fix: add empty array as fallback for impact categories
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Jul 1, 2024
1 parent 2b81803 commit a938105
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/applications/components/ApplicationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const ImpactTags = (): JSX.Element => {
control,
});

const selected = watch("application.impactCategory");
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
const selected = watch("application.impactCategory") ?? [];

const error = formState.errors.application?.impactCategory;
return (
Expand Down

0 comments on commit a938105

Please sign in to comment.