Skip to content

Commit

Permalink
maybe fix main page
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisinajar committed Aug 19, 2024
1 parent c6f884a commit 9592d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/user-info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function UserInfo(props = {}) {

setUserProfile(await userData);
}
if (userProfile.steamid !== userId) {
if (userProfile && userProfile.steamid !== userId) {
fetchData();
}
}, []);
}, [userId]);

if (!userProfile) {
return null;
Expand Down

0 comments on commit 9592d9a

Please sign in to comment.