Skip to content

Commit

Permalink
fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
BenKurrek committed Sep 23, 2024
1 parent 6b7264a commit 401c67f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export default function Leaderboard() {
return timeAgoShort(new Date(timestampInMs));
};

const getUsername = (accountId: string) => {
const getUsername = (accountId: string | undefined) => {
if (!accountId) return "------";
return accountId.split(".")[0];
};

Expand Down

0 comments on commit 401c67f

Please sign in to comment.