Skip to content

Commit

Permalink
Ufixed dependency bug in useEffect -> Profile
Browse files Browse the repository at this point in the history
  • Loading branch information
pooranjoyb committed Jun 13, 2024
1 parent 4ee941d commit f0d7d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Profile() {

useEffect(() => {
fetchData();
}, [userData]);
}, []);

const handleUpdate = () => {
fetchData();
Expand Down

0 comments on commit f0d7d9f

Please sign in to comment.