Skip to content

Commit 222b58d

Browse files
committedFeb 23, 2025
fix null pointer
1 parent ade6fe9 commit 222b58d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/components/Header/Avatar/Avatar.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export function Avatar() {
2525
shape="circle"
2626
onClick={() =>
2727
navigate(
28-
(profile.data as UserProfileDto).userId ? "/profile" : "/auth/signIn",
28+
(profile.data as UserProfileDto)?.userId
29+
? "/profile"
30+
: "/auth/signIn",
2931
)
3032
}
3133
>

0 commit comments

Comments
 (0)
Please sign in to comment.