Skip to content

Commit

Permalink
fix: 🐛 possible error with null reference
Browse files Browse the repository at this point in the history
  • Loading branch information
michyaraque committed Feb 5, 2024
1 parent f5586fa commit fb1879d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function Navbar(props: NavbarProps) {
<Avatar
_hover={{ cursor: 'pointer' }}
color="white"
name={session.account.user.alias}
name={session?.account?.user?.alias}
size="sm"
w="40px"
h="40px"
Expand All @@ -118,7 +118,7 @@ export default function Navbar(props: NavbarProps) {
fontSize="sm"
fontWeight="700"
color="black">
👋&nbsp; Hey, {session.account.user.alias}
👋&nbsp; Hey, {session?.account?.user?.alias}
</Text>
</Flex>
<Flex flexDirection="column" p="10px" color="neutrals.1000">
Expand Down

0 comments on commit fb1879d

Please sign in to comment.