Skip to content

Commit

Permalink
update dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
mentalcaries committed Aug 23, 2023
1 parent 7c058c8 commit e7bbf0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const LoginForm = () => {

useEffect(() => {
form.reset(defaultValues);
}, [isFormSubmitted, defaultValues, form]);
}, [isFormSubmitted]);

return (
<main className="flex-1 flex flex-col justify-center items-center">
Expand Down

0 comments on commit e7bbf0a

Please sign in to comment.