website refactor

This commit is contained in:
2026-01-17 22:55:03 +01:00
parent 64d9e7fd16
commit 69d4cce7f1
64 changed files with 1146 additions and 1014 deletions

View File

@@ -5,7 +5,10 @@
*/
export class DashboardCountDisplay {
static format(count: number): string {
static format(count: number | null | undefined): string {
if (count === null || count === undefined) {
return '0';
}
return count.toString();
}
}

View File

@@ -5,7 +5,10 @@
*/
export class DashboardLeaguePositionDisplay {
static format(position: number): string {
static format(position: number | null | undefined): string {
if (position === null || position === undefined) {
return '-';
}
return `#${position}`;
}
}