Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
vsrivatsa-edinburgh authored Jul 2, 2024
1 parent 9b50b1e commit a7b52a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Payments/PayPal.res
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let make = () => {
->then(result => {
let result = result->JSON.Decode.bool->Option.getOr(false)
if result {
UtilityHooks.useHandlePostMessages(~complete=true, ~empty=true, ~paymentType="paypal")
UtilityHooks.useHandlePostMessages(~complete=true, ~empty=false, ~paymentType="paypal")
let (connectors, _) =
paymentMethodListValue->PaymentUtils.getConnectors(Wallets(Paypal(Redirect)))
let body = PaymentBody.paypalRedirectionBody(~connectors)
Expand Down
2 changes: 1 addition & 1 deletion src/Payments/PaypalSDKHelpers.res
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let loadPaypalSDK = (
->then(result => {
let result = result->JSON.Decode.bool->Option.getOr(false)
if result {
UtilityHooks.useHandlePostMessages(~complete=true, ~empty=true, ~paymentType="paypal")
UtilityHooks.useHandlePostMessages(~complete=true, ~empty=false, ~paymentType="paypal")
let paypalWrapper = GooglePayType.getElementById(Utils.document, "paypal-button")
paypalWrapper.innerHTML = ""
paypal["Buttons"]({
Expand Down

0 comments on commit a7b52a9

Please sign in to comment.