Skip to content

Commit 6d3e188

Browse files
authored
fix: Type 'string | null' is not assignable to type 'string | number'
1 parent 1d93d2c commit 6d3e188

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.name })}
88+
{t("topwork.titleForUser", { username: user.name || user.username })}
8989
</CardTitle>
9090
<CardDescription>{t("topwork.desc")}</CardDescription>
9191
</CardHeader>

0 commit comments

Comments
 (0)