website cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// DTO matching the backend RacesPageDataRaceDTO
|
||||
interface RaceListItemDTO {
|
||||
export interface RaceListItemDTO {
|
||||
id: string;
|
||||
track: string;
|
||||
car: string;
|
||||
@@ -7,7 +7,7 @@ interface RaceListItemDTO {
|
||||
status: string;
|
||||
leagueId: string;
|
||||
leagueName: string;
|
||||
strengthOfField: number | null;
|
||||
strengthOfField?: number | null;
|
||||
isUpcoming: boolean;
|
||||
isLive: boolean;
|
||||
isPast: boolean;
|
||||
@@ -34,7 +34,7 @@ export class RaceListItemViewModel {
|
||||
this.status = dto.status;
|
||||
this.leagueId = dto.leagueId;
|
||||
this.leagueName = dto.leagueName;
|
||||
this.strengthOfField = dto.strengthOfField;
|
||||
this.strengthOfField = dto.strengthOfField ?? null;
|
||||
this.isUpcoming = dto.isUpcoming;
|
||||
this.isLive = dto.isLive;
|
||||
this.isPast = dto.isPast;
|
||||
@@ -70,4 +70,4 @@ export class RaceListItemViewModel {
|
||||
const hours = Math.floor(minutes / 60);
|
||||
return `${hours}h ${minutes % 60}m`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user