|
|
@ -447,7 +447,7 @@ export class DataService { |
|
|
symbol: string; |
|
|
symbol: string; |
|
|
}): Observable< |
|
|
}): Observable< |
|
|
Omit<PortfolioHoldingResponse, 'dateOfFirstActivity'> & { |
|
|
Omit<PortfolioHoldingResponse, 'dateOfFirstActivity'> & { |
|
|
dateOfFirstActivity: Date; |
|
|
dateOfFirstActivity: Date | undefined; |
|
|
} |
|
|
} |
|
|
> { |
|
|
> { |
|
|
return this.http |
|
|
return this.http |
|
|
@ -456,9 +456,13 @@ export class DataService { |
|
|
) |
|
|
) |
|
|
.pipe( |
|
|
.pipe( |
|
|
map((response) => { |
|
|
map((response) => { |
|
|
|
|
|
const dateOfFirstActivity = response.dateOfFirstActivity |
|
|
|
|
|
? parseISO(response.dateOfFirstActivity) |
|
|
|
|
|
: undefined; |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
...response, |
|
|
...response, |
|
|
dateOfFirstActivity: parseISO(response.dateOfFirstActivity) |
|
|
dateOfFirstActivity |
|
|
}; |
|
|
}; |
|
|
}) |
|
|
}) |
|
|
); |
|
|
); |
|
|
|