Skip to content

Commit

Permalink
fix: opened LogicUtils at the top of the function
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddhi Agrawal committed Dec 5, 2023
1 parent 34614ad commit b581e0e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/screens/HyperSwitch/ThreeDSFlow/ThreeDSUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@ let constuctAlgorithmValue = rules => {
}

let buildThreeDsPayloadBody = values => {
let valuesDict = values->LogicUtils.getDictFromJsonObject
let dataDict = valuesDict->LogicUtils.getDictfromDict("algorithm")
let rulesDict = dataDict->LogicUtils.getArrayFromDict("rules", [])
open LogicUtils

let valuesDict = values->getDictFromJsonObject
let dataDict = valuesDict->getDictfromDict("algorithm")
let rulesDict = dataDict->getArrayFromDict("rules", [])

let modifiedRules = rulesDict->AdvancedRoutingUtils.generateRule

let threeDsPayload = {
"name": valuesDict->LogicUtils.getString("name", ""),
"name": valuesDict->getString("name", ""),
"algorithm": {
"defaultSelection": {
"override_3ds": null,
Expand Down

0 comments on commit b581e0e

Please sign in to comment.