Browse Source

remove null handling for marketPrice

pull/4779/head
tobikugel 3 months ago
committed by Thomas Kaul
parent
commit
02e02d1db0
  1. 2
      apps/api/src/models/rule.ts

2
apps/api/src/models/rule.ts

@ -56,7 +56,7 @@ export abstract class Rule<T extends RuleSettings> implements RuleInterface<T> {
previousValue + previousValue +
this.exchangeRateDataService.toCurrency( this.exchangeRateDataService.toCurrency(
new Big(currentValue.quantity) new Big(currentValue.quantity)
.mul(currentValue.marketPrice ?? 0) .mul(currentValue.marketPrice)
.toNumber(), .toNumber(),
currentValue.currency, currentValue.currency,
baseCurrency baseCurrency

Loading…
Cancel
Save