Skip to content

Commit

Permalink
Update Header.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din authored Oct 25, 2024
1 parent d015c51 commit 67e865f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Header() {
const user = useContext(UserCredentialsContext);

useEffect(() => {
if(!user.user) return;
if(!user || !user.user) return;
addLoggedInUser(user.user as User);
}, [user])

Expand Down

0 comments on commit 67e865f

Please sign in to comment.