@depay/widgets 7.0.0 → 7.0.3

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
@@ -746,6 +746,7 @@ var SelectWalletDialog = (function (props) {
746
746
 
747
747
  if (accounts == undefined || accounts.length == 0) {
748
748
  navigate('ConnectingWallet');
749
+ props.connect(wallet);
749
750
  }
750
751
 
751
752
  case 5:
@@ -839,6 +840,7 @@ var ConnectStack = (function (props) {
839
840
  setWallet = _useState4[1];
840
841
 
841
842
  var connect = function connect(wallet) {
843
+ console.log('CONNECT');
842
844
  wallet.connect().then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
843
845
  var accounts;
844
846
  return regenerator.wrap(function _callee$(_context) {
@@ -913,8 +915,6 @@ var ConnectStack = (function (props) {
913
915
  account: accounts[0],
914
916
  accounts: accounts
915
917
  });
916
- } else {
917
- connect(wallet);
918
918
  }
919
919
 
920
920
  case 5:
@@ -1421,7 +1421,7 @@ var styleRenderer = (function (style) {
1421
1421
  },
1422
1422
  fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
1423
1423
  }, style);
1424
- return [ResetStyle(), DialogStyle(style), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(style), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(style), TextButtonStyle(style), ImageStyle(style), BlockchainLogoStyle(style), SearchStyle(style), TokenImageStyle(style), AlertStyle(style), TableStyle(style), LinkStyle(style), TooltipStyle(style)].join('');
1424
+ return [ResetStyle(), DialogStyle(), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(), TextButtonStyle(style), ImageStyle(), BlockchainLogoStyle(), SearchStyle(style), TokenImageStyle(), AlertStyle(), TableStyle(), LinkStyle(style), TooltipStyle(style)].join('');
1425
1425
  });
1426
1426
 
1427
1427
  var mount = (function (_ref, content) {