@ -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
@ -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;