Browse Source

remove null handling for marketPrice

pull/4835/head
tobikugel 3 months ago
parent
commit
3fafa7fc6f
  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