website refactor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user