Skip to content

Commit

Permalink
Merge pull request #3 from AbhiPatel10/eventspage
Browse files Browse the repository at this point in the history
fix: events page _id problem solved
  • Loading branch information
nomadicmehul authored Oct 4, 2023
2 parents 3d7199a + 54aef58 commit 9b49c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OSW-frontend/src/components/Event/Events.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const Events = () => {
console.log(error.message);
}
};
if (user._id && user._id !== "") {
if (user?._id && user?._id !== "") {
fetchUserProfile();
}
}, [user]);
Expand Down

0 comments on commit 9b49c1a

Please sign in to comment.