🖼️ fix: Prevent Empty Avatar Source (#4321)

This commit is contained in:
Danny Avila 2024-10-03 07:42:15 -04:00 committed by GitHub
parent cb0b69e807
commit 104341e0e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ function AccountSettings() {
) : (
<img
className="rounded-full"
src={user?.avatar ?? avatarSrc}
src={(user?.avatar ?? '') || avatarSrc}
alt={`${name}'s avatar`}
/>
)}