Skip to content

Commit

Permalink
fix: HS-154: reverting ApplePay file to older version for AB testing (#…
Browse files Browse the repository at this point in the history
…37)

Co-authored-by: arun.mishra <[email protected]>
  • Loading branch information
arun-mi and arun.mishra authored Nov 21, 2023
1 parent 5b61d99 commit c998bbf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Payments/ApplePay.res
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ let default = (props: props) => {
let setIsShowOrPayUsing = Recoil.useSetRecoilState(RecoilAtoms.isShowOrPayUsing)
let (showApplePay, setShowApplePay) = React.useState(() => false)
let (showApplePayLoader, setShowApplePayLoader) = React.useState(() => false)
let intent = PaymentHelpers.usePaymentIntent(Some(loggerState), Applepay)
let sync = PaymentHelpers.usePaymentSync(Some(loggerState), Applepay)
let intent = PaymentHelpers.usePaymentIntent(None, Applepay)
let sync = PaymentHelpers.usePaymentSync(None, Applepay)
let options = Recoil.useRecoilValueFromAtom(RecoilAtoms.optionAtom)
let (applePayClicked, setApplePayClicked) = React.useState(_ => false)
let isApplePaySDKFlow = props.sessionObj->Belt.Option.isSome
Expand Down Expand Up @@ -269,11 +269,6 @@ let default = (props: props) => {
)
}, [isInvokeSDKFlow])

React.useEffect0(() => {
setIsShowOrPayUsing(.prev => prev || showApplePay)
None
})

<div>
<style> {React.string(css)} </style>
{if showApplePay {
Expand Down

0 comments on commit c998bbf

Please sign in to comment.