@depay/widgets 12.10.8 → 12.10.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -26614,8 +26614,10 @@ var Footer = (function () {
26614
26614
  setSecondsLeftCountdown(0);
26615
26615
  }
26616
26616
  }, [confirmationsPassed]);
26617
- var trackingInfo = function trackingInfo() {
26618
- if (synchronousTracking == false && asynchronousTracking == false || asynchronousTracking && trackingInitialized) {
26617
+ var trackingInfo = function trackingInfo(transaction) {
26618
+ if (!transaction) {
26619
+ return null;
26620
+ } else if (synchronousTracking == false && asynchronousTracking == false || asynchronousTracking && trackingInitialized) {
26619
26621
  return null;
26620
26622
  } else if (asynchronousTracking && trackingInitialized == false) {
26621
26623
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
@@ -26724,7 +26726,7 @@ var Footer = (function () {
26724
26726
  className: "CardBodyWrapper"
26725
26727
  }, /*#__PURE__*/React.createElement("div", {
26726
26728
  className: "Opacity05"
26727
- }, "Transaction confirmed"))))), trackingInfo());
26729
+ }, "Transaction confirmed"))))), trackingInfo(transaction));
26728
26730
  }
26729
26731
  };
26730
26732
  var approvalButton = function approvalButton() {
@@ -27818,6 +27820,9 @@ var PaymentTrackingProvider = (function (props) {
27818
27820
  if (!synchronousTracking && !asynchronousTracking) {
27819
27821
  return Promise.resolve();
27820
27822
  }
27823
+ setDeadline(deadline);
27824
+ setAfterBlock(afterBlock);
27825
+ setPaymentRoute(paymentRoute);
27821
27826
  openSocket(transaction);
27822
27827
  return new Promise( /*#__PURE__*/function () {
27823
27828
  var _ref6 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee6(resolve, reject) {