Skip to content

Commit

Permalink
fix: safeParse added
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja committed Aug 5, 2024
1 parent f6b5e5b commit 151b6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utilities/PaymentHelpers.res
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ let rec intentCall = (
| Card => "CARD"
| _ =>
bodyStr
->JSON.parseExn
->safeParse
->getDictFromJson
->getString("payment_method_type", "")
}
Expand Down Expand Up @@ -1085,7 +1085,7 @@ let usePaymentIntent = (optLogger, paymentType) => {
})
}
if blockConfirm && Window.isInteg {
Console.log3("CONFIRM IS BLOCKED", body->JSON.parseExn, headers)
Console.log3("CONFIRM IS BLOCKED", body->safeParse, headers)
} else {
intentCall(
~fetchApi,
Expand Down

0 comments on commit 151b6f7

Please sign in to comment.