mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
`toCurrencyAtDate()` resolves to undefined when no exchange rate exists for an activity's date, so `feeInAssetProfileCurrency` and `feeInBaseCurrency` can reach the calculator unset. Passing those straight into `new Big()` threw "[big.js] Invalid number" and failed the whole portfolio request, so the Overview, Portfolio and Holdings pages rendered "Oops! Something went wrong". Fees are only ever accumulated, so 0 is the identity here and the snapshot stays computable while the exchange rate data is still being gathered. Refs ghostfolio/ghostfolio#6482pull/7384/head
1 changed files with 7 additions and 2 deletions
Loading…
Reference in new issue