|
@ -407,8 +407,11 @@ export class PortfolioServiceNew { |
|
|
|
|
|
|
|
|
const orders = ( |
|
|
const orders = ( |
|
|
await this.orderService.getOrders({ userCurrency, userId }) |
|
|
await this.orderService.getOrders({ userCurrency, userId }) |
|
|
).filter((order) => { |
|
|
).filter(({ SymbolProfile }) => { |
|
|
return order.dataSource === aDataSource && order.symbol === aSymbol; |
|
|
return ( |
|
|
|
|
|
SymbolProfile.dataSource === aDataSource && |
|
|
|
|
|
SymbolProfile.symbol === aSymbol |
|
|
|
|
|
); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (orders.length <= 0) { |
|
|
if (orders.length <= 0) { |
|
|