Skip to content

Commit

Permalink
Update src/components/Form/FormProvider.tsx
Browse files Browse the repository at this point in the history
Removed redundant comment

Co-authored-by: Vit Horacek <[email protected]>
  • Loading branch information
ikevin127 and mountiny authored Feb 13, 2024
1 parent 8cde1e2 commit 5c6e435
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Form/FormProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ function FormProvider(
// Validate in order to make sure the correct error translations are displayed,
// making sure to not clear server errors if they exist
onValidate(trimmedStringValues, !hasServerError);

// Only run when locales change
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [preferredLocale]);
Expand Down

0 comments on commit 5c6e435

Please sign in to comment.