diff --git a/src/components/profile/v2/SolvedChallenges.jsx b/src/components/profile/v2/SolvedChallenges.jsx index d60029d9..2708f6c5 100644 --- a/src/components/profile/v2/SolvedChallenges.jsx +++ b/src/components/profile/v2/SolvedChallenges.jsx @@ -17,11 +17,11 @@ const SolvedChallenges = ({ user }) => { setSolvedChallenges(response); setLoading(false); - }; setLoading(true); fetchSolvedChallenges(); + }, [user]); if (loading) return