Skip to content

Commit 8b66435

Browse files
fix(webapp): use consistent getInitials in LeaderboardOverview
1 parent d13e2e3 commit 8b66435

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

webapp/src/components/leaderboard/LeaderboardOverview.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useEffect, useState } from "react";
44
import type { LeaderboardEntry } from "@/api/types.gen";
55
import { Button } from "@/components/ui/button";
66
import { Card, CardContent } from "@/components/ui/card";
7+
import { getInitials } from "@/lib/avatar";
78
import { LeagueInfoDialog } from "./LeagueInfoDialog";
89
import { LeagueProgressCard } from "./LeagueProgressCard";
910

@@ -106,7 +107,7 @@ export function LeaderboardOverview({
106107
/>
107108
) : (
108109
<span className="text-sm font-medium">
109-
{user.name.slice(0, 2).toUpperCase()}
110+
{getInitials(user.name, user.login)}
110111
</span>
111112
)}
112113
</div>

0 commit comments

Comments
 (0)