diff --git a/components/DesktopSidebar/UserIcon.tsx b/components/DesktopSidebar/UserIcon.tsx index 0865602..a164245 100644 --- a/components/DesktopSidebar/UserIcon.tsx +++ b/components/DesktopSidebar/UserIcon.tsx @@ -17,59 +17,29 @@ export const UserIcon = () => { return ( - {/* Bigger image size for desktop and smaller for mobile */} {session?.user && ( <> + {/* Choose image size based on screen size */} - {/* User Profile Picture */} - {session.user.profileImgUrl && ( - user-profile - )} - - {/* Default Profile Picture */} - {!session.user.profileImgUrl && ( - - )} + user-profile - - {/* User Profile Picture */} - {session.user.profileImgUrl && ( - user-profile - )} - - {/* Default Profile Picture */} - {!session.user.profileImgUrl && ( - - )} + user-profile )} - {/* - {session?.user && session.user.profileImgUrl && ( - user-profile - )} - - - - */} - {session?.user && session.user.name} + {session?.user?.name} ); };