diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index c223e5b..b8be342 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -221,19 +221,19 @@ export default function DashboardPage() {
- {avatarUrls[user.id] ? ( - - ) : ( -
- - {user.profile?.firstName?.[0] || user.email[0].toUpperCase()} - -
- )} +
+ + {user.profile?.firstName?.[0] || user.email[0].toUpperCase()} + + {avatarUrls[user.id] && ( + { (e.target as HTMLImageElement).style.display = 'none'; }} + /> + )} +
diff --git a/src/app/dashboard/users/[id]/page.tsx b/src/app/dashboard/users/[id]/page.tsx index cb466da..4c21e3e 100644 --- a/src/app/dashboard/users/[id]/page.tsx +++ b/src/app/dashboard/users/[id]/page.tsx @@ -313,15 +313,14 @@ export default function UserDetailPage() {
{/* Avatar */}
- {avatarUrl ? ( - - ) : ( -
- - {user.profile?.firstName?.[0] || user.email[0].toUpperCase()} - -
- )} +
+ + {user.profile?.firstName?.[0] || user.email[0].toUpperCase()} + + {avatarUrl && ( + { (e.target as HTMLImageElement).style.display = 'none'; }} /> + )} +
{/* Name & Email */} diff --git a/src/app/dashboard/users/page.tsx b/src/app/dashboard/users/page.tsx index 553a58a..6dd3c6a 100644 --- a/src/app/dashboard/users/page.tsx +++ b/src/app/dashboard/users/page.tsx @@ -207,19 +207,19 @@ export default function UsersPage() {
- {avatarUrls[user.id] ? ( - - ) : ( -
- - {user.profile?.firstName?.[0] || user.email[0].toUpperCase()} - -
- )} +
+ + {user.profile?.firstName?.[0] || user.email[0].toUpperCase()} + + {avatarUrls[user.id] && ( + { (e.target as HTMLImageElement).style.display = 'none'; }} + /> + )} +