From 02e02d1db0a9305e48f0572a4472f0a32f5155f0 Mon Sep 17 00:00:00 2001 From: tobikugel Date: Wed, 28 May 2025 12:15:54 -0300 Subject: [PATCH] remove null handling for marketPrice --- apps/api/src/models/rule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/models/rule.ts b/apps/api/src/models/rule.ts index 4143f4562..187527fbb 100644 --- a/apps/api/src/models/rule.ts +++ b/apps/api/src/models/rule.ts @@ -56,7 +56,7 @@ export abstract class Rule implements RuleInterface { previousValue + this.exchangeRateDataService.toCurrency( new Big(currentValue.quantity) - .mul(currentValue.marketPrice ?? 0) + .mul(currentValue.marketPrice) .toNumber(), currentValue.currency, baseCurrency