Skip to content

Commit

Permalink
fix: HS-185: ApplePay button not rendering and orPayUsing not visible (
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay authored Dec 26, 2023
1 parent 404ddc1 commit 2a96ed7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Payments/ApplePay.res
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,16 @@ let make = (
)
}, (isInvokeSDKFlow, requiredFieldsBody))

React.useEffect1(() => {
React.useEffect3(() => {
if (
(isInvokeSDKFlow || paymentExperience == PaymentMethodsRecord.RedirectToURL) &&
isApplePayReady
) {
setShowApplePay(_ => true)
setIsShowOrPayUsing(._ => true)
}
None
}, [isApplePayReady])
}, (isApplePayReady, isInvokeSDKFlow, paymentExperience))

let submitCallback = React.useCallback((ev: Window.event) => {
if !isWallet {
Expand Down

0 comments on commit 2a96ed7

Please sign in to comment.