@kimafinance/kima-transaction-widget 1.2.21-beta.1 → 1.2.22-beta.1

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/index.js CHANGED
@@ -2209,10 +2209,7 @@ function useIsWalletReady() {
2209
2209
  var _useState = React.useState('loading'),
2210
2210
  capabilityState = _useState[0],
2211
2211
  setCapabilityState = _useState[1];
2212
- var _useState2 = React.useState(),
2213
- capabilities = _useState2[0],
2214
- setCapabilities = _useState2[1];
2215
- var capabilityMessage = capabilityState === 'loading' ? 'Checking capabilities...' : capabilityState === 'cancelled' ? 'Capability check cancelled by wallet. Please refresh the page and try again.' : capabilityState === 'missing' ? 'Could not find an installed Sats Connect capable wallet. Please install a wallet and try again.' : !capabilities ? 'Something went wrong with getting capabilities' : undefined;
2212
+ var capabilityMessage = capabilityState === 'loading' ? 'Checking capabilities...' : capabilityState === 'cancelled' ? 'Capability check cancelled by wallet. Please refresh the page and try again.' : capabilityState === 'missing' ? 'Could not find an installed Sats Connect capable wallet. Please install a wallet and try again.' : undefined;
2216
2213
  React.useEffect(function () {
2217
2214
  var _events$data, _events$data2;
2218
2215
  if (((_events$data = events.data) === null || _events$data === void 0 ? void 0 : _events$data.event) === 'SELECT_WALLET' || ((_events$data2 = events.data) === null || _events$data2 === void 0 ? void 0 : _events$data2.event) === 'CONNECT_SUCCESS') {
@@ -2237,8 +2234,7 @@ function useIsWalletReady() {
2237
2234
  }
2238
2235
  var _temp = _catch(function () {
2239
2236
  return Promise.resolve(satsConnect.getCapabilities({
2240
- onFinish: function onFinish(response) {
2241
- setCapabilities(new Set(response));
2237
+ onFinish: function onFinish() {
2242
2238
  setCapabilityState('loaded');
2243
2239
  },
2244
2240
  onCancel: function onCancel() {
@@ -8308,6 +8304,7 @@ function usePendingTx(_ref) {
8308
8304
  }, 10000);
8309
8305
  updatePendingTxs();
8310
8306
  return function () {
8307
+ console.log('clearInterval', timerId);
8311
8308
  clearInterval(timerId);
8312
8309
  };
8313
8310
  }, [sourceChain, nodeProviderQuery, walletAddress]);