Skip to content

Commit

Permalink
maybe this
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisinajar committed Aug 20, 2024
1 parent 51aa2cc commit 844ad9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/user-info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const useStyles = makeStyles(theme => ({

function UserInfo(props = {}) {
const [userState] = useUserState();
const { userId = userState.steamid } = props;
const { userId = userState.user?.steamid } = props;
const classes = useStyles();
const [userProfile, setUserProfile] = useState(props.userProfile || null);
const { user } = userState;
Expand Down

0 comments on commit 844ad9b

Please sign in to comment.