website refactor
This commit is contained in:
@@ -111,6 +111,7 @@ export class DriverProfileViewModelBuilder {
|
||||
private static transformExtendedProfile(dto: DriverProfileExtendedProfileDTO): DriverProfileExtendedProfileViewModel {
|
||||
return {
|
||||
socialHandles: dto.socialHandles.map(h => ({
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
platform: h.platform as any, // Type assertion - assuming valid platform
|
||||
handle: h.handle,
|
||||
url: h.url,
|
||||
@@ -119,7 +120,9 @@ export class DriverProfileViewModelBuilder {
|
||||
id: a.id,
|
||||
title: a.title,
|
||||
description: a.description,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
icon: a.icon as any, // Type assertion - assuming valid icon
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
rarity: a.rarity as any, // Type assertion - assuming valid rarity
|
||||
earnedAt: a.earnedAt,
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user