Skip to content

Commit

Permalink
Optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
codercake committed Jun 6, 2024
1 parent b934047 commit e6dd1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/core/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const Navbar = ({ starCount }: { starCount?: number }) => {
Login
</Link>

{userAuth && userAuth.data?.$id && (
{userAuth?.data?.$id && (
<>
<Link
href={`/user/${userAuth.data?.$id}`}
Expand Down

0 comments on commit e6dd1cf

Please sign in to comment.