Browse Source

Improve handling of activities without account

pull/3060/head
Thomas Kaul 2 years ago
parent
commit
3a7fb4070e
  1. 4
      apps/api/src/app/portfolio/portfolio.service.ts

4
apps/api/src/app/portfolio/portfolio.service.ts

@ -749,7 +749,9 @@ export class PortfolioService {
} = position; } = position;
const accounts: PortfolioPositionDetail['accounts'] = uniqBy( const accounts: PortfolioPositionDetail['accounts'] = uniqBy(
orders, orders.filter(({ Account }) => {
return Account;
}),
'Account.id' 'Account.id'
).map(({ Account }) => { ).map(({ Account }) => {
return Account; return Account;

Loading…
Cancel
Save