Skip to content

Commit

Permalink
added searchParams to dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Familia committed Aug 3, 2023
1 parent 9dc8be4 commit e6162ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function Login() {
// Couldn't create login flow
// handle the error
});
}, []);
}, [searchParams]);

const submit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
Expand Down

0 comments on commit e6162ab

Please sign in to comment.