Skip to content

Commit

Permalink
fix: HS-158: Updated the ApplePay file on main (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: arun.mishra <[email protected]>
  • Loading branch information
arun-mi and arun.mishra authored Nov 13, 2023
1 parent 401ecd5 commit 3252670
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Payments/ApplePay.res
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type props = {sessionObj: option<Js.Json.t>, list: PaymentMethodsRecord.list}

let default = (props: props) => {
let loggerState = Recoil.useRecoilValueFromAtom(RecoilAtoms.loggerAtom)
let {publishableKey} = Recoil.useRecoilValueFromAtom(RecoilAtoms.keys)
let (showApplePay, setShowApplePay) = React.useState(() => false)
let (showApplePayLoader, setShowApplePayLoader) = React.useState(() => false)
Expand Down Expand Up @@ -251,11 +252,6 @@ let default = (props: props) => {
)
}

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

React.useEffect1(() => {
Utils.handlePostMessage([("applePayMounted", true->Js.Json.boolean)])
let handleApplePayMessages = (ev: Window.event) => {
Expand Down

0 comments on commit 3252670

Please sign in to comment.