Skip to content

Commit

Permalink
fix: callback fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja committed Oct 15, 2024
1 parent f1f8d32 commit 5b7e78b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/orca-loader/LoaderPaymentElement.res
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ let make = (
"onEscape",
)
| CompleteDoThis =>
eventHandlerFunc(
ev => ev.data.completeDoThis,
eventHandler,
CompleteDoThis,
"onCompleteDoThis",
)
if eventHandler->Option.isSome {
eventHandlerFunc(
ev => ev.data.completeDoThis,
eventHandler,
CompleteDoThis,
"onCompleteDoThis",
)
}
| Change =>
eventHandlerFunc(
ev => ev.data.elementType === componentType,
Expand Down

0 comments on commit 5b7e78b

Please sign in to comment.