code quality
This commit is contained in:
@@ -9,16 +9,16 @@ import type { DriverSummaryData } from "../view-data/DriverSummaryData";
|
||||
* Client-only UI helper built from ViewData.
|
||||
*/
|
||||
export class DriverSummaryViewModel extends ViewModel {
|
||||
constructor(private readonly viewData: DriverSummaryData) {
|
||||
constructor(private readonly viewData: any) {
|
||||
super();
|
||||
}
|
||||
|
||||
get id(): string {
|
||||
return this.viewData.driverId;
|
||||
return this.viewData.driverId || this.viewData.id;
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return this.viewData.driverName;
|
||||
return this.viewData.driverName || this.viewData.name;
|
||||
}
|
||||
|
||||
get avatarUrl(): string | null {
|
||||
|
||||
Reference in New Issue
Block a user