website refactor

This commit is contained in:
2026-01-16 18:21:06 +01:00
parent 2f53727702
commit 095885544b
146 changed files with 970 additions and 524 deletions

View File

@@ -240,10 +240,10 @@ export class Penalty extends Entity<PenaltyId> {
}
}
equals(other: Entity<string>): boolean {
if (!(other instanceof Penalty)) {
equals(other?: Entity<PenaltyId>): boolean {
if (!other || !(other instanceof Penalty)) {
return false;
}
return this.id === other.id;
return this.id.equals(other.id);
}
}