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
2 people authored and prafulkoppalkar committed Nov 16, 2023
1 parent 092a1ee commit 90b211d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Payments/ApplePay.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ type props = {sessionObj: option<Js.Json.t>, list: PaymentMethodsRecord.list}

let default = (props: props) => {
let loggerState = Recoil.useRecoilValueFromAtom(RecoilAtoms.loggerAtom)
let setIsShowOrPayUsing = Recoil.useSetRecoilState(RecoilAtoms.isShowOrPayUsing)
let {publishableKey} = Recoil.useRecoilValueFromAtom(RecoilAtoms.keys)
let (showApplePay, setShowApplePay) = React.useState(() => false)
let (showApplePayLoader, setShowApplePayLoader) = React.useState(() => false)
Expand Down Expand Up @@ -235,11 +234,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 90b211d

Please sign in to comment.