diff --git a/components/LeaderboardSection.tsx b/components/LeaderboardSection.tsx index f12dcb0..5f0ca8e 100644 --- a/components/LeaderboardSection.tsx +++ b/components/LeaderboardSection.tsx @@ -105,21 +105,28 @@ export default function LeaderboardSection({ {/* Player */}
- {entry.avatar ? ( -
+
+ {entry.avatar ? ( {entry.username} { + e.currentTarget.style.display = "none"; + e.currentTarget.nextElementSibling?.classList.remove( + "hidden" + ); + }} /> + ) : null} +
+ {entry.username.charAt(0).toUpperCase()}
- ) : ( -
- - {entry.username.charAt(0).toUpperCase()} - -
- )} +
setSelectedEntry(entry)} @@ -206,21 +213,28 @@ export default function LeaderboardSection({ {/* Avatar and Class */}
- {selectedEntry.avatar ? ( -
+
+ {selectedEntry.avatar ? ( {selectedEntry.username} { + e.currentTarget.style.display = "none"; + e.currentTarget.nextElementSibling?.classList.remove( + "hidden" + ); + }} /> + ) : null} +
+ {selectedEntry.username.charAt(0).toUpperCase()}
- ) : ( -
- - {selectedEntry.username.charAt(0).toUpperCase()} - -
- )} +
Rank #{selectedEntry.rank}