Skip to content

Commit

Permalink
Added user dependency in useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
mansisindhu committed Dec 20, 2021
1 parent aef870f commit bebe4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BrowsePageComponents/GameCard/GameCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const GameCard = (props) => {
if (wishlist?.includes(props.id)) {
setStatus(true);
}
}, []);
}, [user.displayName]);

const history = useHistory();
const add = (e) => {
Expand Down

0 comments on commit bebe4b0

Please sign in to comment.