Browse Source

Fix "Cannot read properties of undefined (reading 'items')"

pull/2667/head
Thomas 2 years ago
parent
commit
c71212d688
  1. 2
      apps/api/src/app/portfolio/portfolio.service.ts

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

@ -879,7 +879,7 @@ export class PortfolioService {
let currentAveragePrice = 0; let currentAveragePrice = 0;
let currentQuantity = 0; let currentQuantity = 0;
const currentSymbol = transactionPoints[j].items.find( const currentSymbol = transactionPoints[j]?.items.find(
({ symbol }) => { ({ symbol }) => {
return symbol === aSymbol; return symbol === aSymbol;
} }

Loading…
Cancel
Save