We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d33eaed + 4562d18 commit 9cc46c4Copy full SHA for 9cc46c4
web-modal-sdk/react-modal-playground/src/components/AccountDetails.tsx
@@ -31,7 +31,7 @@ function AccountDetails({ children }: AccountDetailsProps) {
31
<div className="md:p-8 p-4 mt-6 space-y-4 rounded-lg bg-white overflow-hidden w-full">
32
<div className="flex flex-col md:flex-row space-y-2 md:space-y-0 ">
33
{user.profileImage && <img className="object-fill w-24 h-24 rounded-lg" src={user?.profileImage} referrerPolicy="no-referrer" />}
34
- {!user.profileImage && (
+ {!user.profileImage && user.name && (
35
<span className="flex justify-center items-center bg-purple_100 font-bold w-24 h-24 rounded-lg text-[80px] text-purple_800">
36
{user?.name.charAt(0).toUpperCase()}
37
</span>
0 commit comments