Skip to content

Commit

Permalink
chore: fixed value changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarnaikjuspay committed Jan 6, 2025
1 parent ac68697 commit 6621f06
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,18 @@ let modifySmartRetryQueryData = data => {
let key = Payment_Processed_Amount->getStringFromVariant

let paymentProcessedAmount =
valueDict->getFloat(key->modifyKey(~currency="all_currencies"), 0.0)
valueDict->getFloat(
key->modifyKey(~currency=(#all_currencies: defaultFilters :> string)),
0.0,
)

let key = Payment_Processed_Amount->getStringFromVariant
let paymentProcessedAmountWithoutSmartRetries =
valueDict->getFloat(
key->modifyKey(~isSmartRetryEnabled=Smart_Retry, ~currency="all_currencies"),
key->modifyKey(
~isSmartRetryEnabled=Smart_Retry,
~currency=(#all_currencies: defaultFilters :> string),
),
0.0,
)

Expand Down Expand Up @@ -263,12 +269,18 @@ let modifySmartRetryMetaData = data => {

let key = Total_Payment_Processed_Amount->getStringFromVariant
let paymentProcessedAmount =
valueDict->getFloat(key->modifyKey(~currency="all_currencies"), 0.0)
valueDict->getFloat(
key->modifyKey(~currency=(#all_currencies: defaultFilters :> string)),
0.0,
)

let key = Total_Payment_Processed_Amount->getStringFromVariant
let paymentProcessedAmountWithoutSmartRetries =
valueDict->getFloat(
key->modifyKey(~isSmartRetryEnabled=Smart_Retry, ~currency="all_currencies"),
key->modifyKey(
~isSmartRetryEnabled=Smart_Retry,
~currency=(#all_currencies: defaultFilters :> string),
),
0.0,
)

Expand Down

0 comments on commit 6621f06

Please sign in to comment.