Skip to content

Commit

Permalink
Merge pull request #191 from privacy-scaling-explorations/fix/applica…
Browse files Browse the repository at this point in the history
…tion-page

fix: add empty array as fallback for impact categories
  • Loading branch information
ctrlc03 authored Jul 1, 2024
2 parents 2b81803 + a938105 commit 86228a0
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 86228a0

Please sign in to comment.