website refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { RaceWithSOFDTO } from '../types/generated/RaceWithSOFDTO';
|
||||
import { RaceWithSOFDTO } from '@/lib/types/generated/RaceWithSOFDTO';
|
||||
|
||||
export class RaceWithSOFViewModel {
|
||||
id: string;
|
||||
@@ -8,6 +8,6 @@ export class RaceWithSOFViewModel {
|
||||
constructor(dto: RaceWithSOFDTO) {
|
||||
this.id = dto.id;
|
||||
this.track = dto.track;
|
||||
this.strengthOfField = (dto as any).strengthOfField ?? null;
|
||||
this.strengthOfField = 'strengthOfField' in dto ? dto.strengthOfField ?? null : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user