diff --git a/apps/api/src/app/endpoints/accounts/accounts.controller.ts b/apps/api/src/app/endpoints/accounts/accounts.controller.ts index 87df4441ff..b28e303935 100644 --- a/apps/api/src/app/endpoints/accounts/accounts.controller.ts +++ b/apps/api/src/app/endpoints/accounts/accounts.controller.ts @@ -73,7 +73,7 @@ export class AccountsController { { activities: true } ); - if (!account || (account.activities?.length ?? 0) > 0) { + if (!account?.activities || account.activities.length > 0) { throw new HttpException( getReasonPhrase(StatusCodes.FORBIDDEN), StatusCodes.FORBIDDEN diff --git a/libs/common/src/lib/interfaces/asset-profile-item.interface.ts b/libs/common/src/lib/interfaces/asset-profile-item.interface.ts index 675d53da3d..1044af5560 100644 --- a/libs/common/src/lib/interfaces/asset-profile-item.interface.ts +++ b/libs/common/src/lib/interfaces/asset-profile-item.interface.ts @@ -23,7 +23,7 @@ export interface AssetProfileItem { isUsedByUsersWithSubscription?: boolean; lastMarketPrice?: number; marketDataItemCount: number; - name?: string | null; + name: string | null; sectorsCount: number; symbol: string; watchedByCount: number;