Skip to content

Commit

Permalink
fix: isexit loader added
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja committed Jul 3, 2024
1 parent be62193 commit e972e23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Payments/PlaidSDKIframe.res
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ let make = () => {
handlePostMessage([
("fullscreen", false->JSON.Encode.bool),
("isPlaid", true->JSON.Encode.bool),
("isExited", true->JSON.Encode.bool),
("publicToken", ""->JSON.Encode.string),
])
},
Expand Down
6 changes: 3 additions & 3 deletions src/Payments/VerifyBankDetails.res
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ let make = (~paymentMethodType) => {
let dict = json->Utils.getDictFromJson
if dict->getBool("isPlaid", false) {
let publicToken = dict->getDictFromDict("data")->getString("publicToken", "")
let isExited = dict->getDictFromDict("data")->getBool("isExited", false)
setShowLoader(_ => !isExited)
if publicToken->String.length > 0 {
PaymentHelpers.callAuthExchange(
~publicToken,
Expand Down Expand Up @@ -79,9 +81,7 @@ let make = (~paymentMethodType) => {
~iframeId,
~paymentMethodType,
~pmAuthConnectorsArr,
)
->finally(_ => setShowLoader(_ => false))
->ignore
)->ignore
}

<button
Expand Down

0 comments on commit e972e23

Please sign in to comment.