Skip to content

Commit

Permalink
fix: HS-132: Added RequiredFieldsBody in useEffect for eventListener (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay authored Dec 21, 2023
1 parent 3938170 commit 5b107f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Payments/ApplePay.res
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ let make = (
}
}

React.useEffect1(() => {
React.useEffect2(() => {
let handleApplePayMessages = (ev: Window.event) => {
let json = try {
ev.data->Js.Json.parseExn
Expand Down Expand Up @@ -292,7 +292,7 @@ let make = (
Window.removeEventListener("message", handleApplePayMessages)
},
)
}, [isInvokeSDKFlow])
}, (isInvokeSDKFlow, requiredFieldsBody))

React.useEffect1(() => {
if (
Expand Down

0 comments on commit 5b107f9

Please sign in to comment.