Skip to content

Commit 9cc46c4

Browse files
authored
Merge pull request #840 from Web3Auth/fix-user-name-undefined
fix undefined user.name when using metamask
2 parents d33eaed + 4562d18 commit 9cc46c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-modal-sdk/react-modal-playground/src/components/AccountDetails.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function AccountDetails({ children }: AccountDetailsProps) {
3131
<div className="md:p-8 p-4 mt-6 space-y-4 rounded-lg bg-white overflow-hidden w-full">
3232
<div className="flex flex-col md:flex-row space-y-2 md:space-y-0 ">
3333
{user.profileImage && <img className="object-fill w-24 h-24 rounded-lg" src={user?.profileImage} referrerPolicy="no-referrer" />}
34-
{!user.profileImage && (
34+
{!user.profileImage && user.name && (
3535
<span className="flex justify-center items-center bg-purple_100 font-bold w-24 h-24 rounded-lg text-[80px] text-purple_800">
3636
{user?.name.charAt(0).toUpperCase()}
3737
</span>

0 commit comments

Comments
 (0)