Skip to content

Commit ee56062

Browse files
R0gnva1drO2sa
andauthored
refactor: Replacing username with name in TopList component. (#115)
* Changed instances of "user.username" to "user.name" in "components/top-list.tsx", in line 88. * fix: Type 'string | null' is not assignable to type 'string | number' --------- Co-authored-by: Osama Mabkhot <99215291+O2sa@users.noreply.github.com>
1 parent df6a831 commit ee56062

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/top-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function TopList({ userResults }: Props) {
8585
<Card key={`top-${user.username}`}>
8686
<CardHeader>
8787
<CardTitle className="text-lg">
88-
{t("topwork.titleForUser", { username: user.username })}
88+
{t("topwork.titleForUser", { username: user.name || user.username })}
8989
</CardTitle>
9090
<CardDescription>{t("topwork.desc")}</CardDescription>
9191
</CardHeader>

0 commit comments

Comments
 (0)