fix issues in core
This commit is contained in:
@@ -104,10 +104,10 @@ export class RaceIncidents implements IValueObject<IncidentRecord[]> {
|
||||
|
||||
return sortedThis.every((incident, index) => {
|
||||
const otherIncident = sortedOther[index];
|
||||
return incident.type === otherIncident.type &&
|
||||
incident.lap === otherIncident.lap &&
|
||||
incident.description === otherIncident.description &&
|
||||
incident.penaltyPoints === otherIncident.penaltyPoints;
|
||||
return incident.type === otherIncident?.type &&
|
||||
incident.lap === otherIncident?.lap &&
|
||||
incident.description === otherIncident?.description &&
|
||||
incident.penaltyPoints === otherIncident?.penaltyPoints;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user