mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 08:50:56 +01:00
fix: crash with no user in session
This commit is contained in:
@@ -14,7 +14,7 @@ export const UserAvatar = async ({ size }: UserAvatarProps) => {
|
||||
color: "primaryColor",
|
||||
} satisfies Partial<AvatarProps>;
|
||||
|
||||
if (!currentSession) return <Avatar {...commonProps} />;
|
||||
if (!currentSession?.user) return <Avatar {...commonProps} />;
|
||||
if (currentSession.user.image)
|
||||
return (
|
||||
<Avatar
|
||||
|
||||
Reference in New Issue
Block a user