@depay/widgets 12.10.7 → 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.
@@ -26667,8 +26667,10 @@ var Footer = (function () {
26667
26667
  setSecondsLeftCountdown(0);
26668
26668
  }
26669
26669
  }, [confirmationsPassed]);
26670
- var trackingInfo = function trackingInfo() {
26671
- if (synchronousTracking == false && asynchronousTracking == false || asynchronousTracking && trackingInitialized) {
26670
+ var trackingInfo = function trackingInfo(transaction) {
26671
+ if (!transaction) {
26672
+ return null;
26673
+ } else if (synchronousTracking == false && asynchronousTracking == false || asynchronousTracking && trackingInitialized) {
26672
26674
  return null;
26673
26675
  } else if (asynchronousTracking && trackingInitialized == false) {
26674
26676
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
@@ -26777,7 +26779,7 @@ var Footer = (function () {
26777
26779
  className: "CardBodyWrapper"
26778
26780
  }, /*#__PURE__*/React.createElement("div", {
26779
26781
  className: "Opacity05"
26780
- }, "Transaction confirmed"))))), trackingInfo());
26782
+ }, "Transaction confirmed"))))), trackingInfo(transaction));
26781
26783
  }
26782
26784
  };
26783
26785
  var approvalButton = function approvalButton() {
@@ -27410,7 +27412,7 @@ var PaymentTrackingProvider = (function (props) {
27410
27412
  case 0:
27411
27413
  _context.t0 = JSON;
27412
27414
  _context.t1 = transaction.blockchain;
27413
- _context.t2 = transaction.from;
27415
+ _context.t2 = transaction.from || account;
27414
27416
  _context.next = 5;
27415
27417
  return getNonce({
27416
27418
  transaction: transaction,
@@ -27831,6 +27833,10 @@ var PaymentTrackingProvider = (function (props) {
27831
27833
  if (!synchronousTracking && !asynchronousTracking) {
27832
27834
  return Promise.resolve();
27833
27835
  }
27836
+ setDeadline(deadline);
27837
+ setAfterBlock(afterBlock);
27838
+ setPaymentRoute(paymentRoute);
27839
+ openSocket(transaction);
27834
27840
  return new Promise( /*#__PURE__*/function () {
27835
27841
  var _ref6 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee6(resolve, reject) {
27836
27842
  var _paymentRoute$feeAmou2;