mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
When a holding has no market price data (e.g. newly added activity before price data is fetched), Big.js throws "[big.js] Invalid number" because null is passed to .mul(). This crashes the /api/v1/portfolio/report endpoint. Use nullish coalescing (marketPrice ?? 0) to treat missing prices as zero, consistent with the pattern already used in portfolio.service.ts. Fixes #4607pull/6397/head
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue