From 7ccaca81999aafd372bf6271ad8c6aa75f888a32 Mon Sep 17 00:00:00 2001 From: Reza Zahedi Date: Mon, 17 Jul 2023 14:02:28 -0700 Subject: [PATCH] Using user's name in DiceBear profile avatar instead of email --- components/layout/user-dropdown.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/layout/user-dropdown.tsx b/components/layout/user-dropdown.tsx index b9c9c1a9..023e0ce8 100644 --- a/components/layout/user-dropdown.tsx +++ b/components/layout/user-dropdown.tsx @@ -8,7 +8,7 @@ import Image from "next/image"; import { Session } from "next-auth"; export default function UserDropdown({ session }: { session: Session }) { - const { email, image } = session?.user || {}; + const { name, email, image } = session?.user || {}; const [openPopover, setOpenPopover] = useState(false); if (!email) return null; @@ -51,7 +51,7 @@ export default function UserDropdown({ session }: { session: Session }) { > {email}