Skip to content

Commit

Permalink
fix null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
NookieGrey committed Feb 23, 2025
1 parent ade6fe9 commit 222b58d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Header/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function Avatar() {
shape="circle"
onClick={() =>
navigate(
(profile.data as UserProfileDto).userId ? "/profile" : "/auth/signIn",
(profile.data as UserProfileDto)?.userId
? "/profile"
: "/auth/signIn",
)
}
>
Expand Down

0 comments on commit 222b58d

Please sign in to comment.