@matchain/matchid-sdk-react 0.1.40-alpha.2 → 0.1.40-alpha.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.
@@ -4,7 +4,7 @@ import {
4
4
  useMatchEvents,
5
5
  useUserInfo,
6
6
  useWallet
7
- } from "../chunk-3CHFSRD3.mjs";
7
+ } from "../chunk-XXZABHH6.mjs";
8
8
  import "../chunk-6PWH7WZI.mjs";
9
9
  import "../chunk-J5LGTIGS.mjs";
10
10
  export {
package/dist/index.js CHANGED
@@ -4084,9 +4084,6 @@ function useWalletInit({
4084
4084
  document.body.insertBefore(iframe, document.body.firstChild);
4085
4085
  window.sendMatchWalletMessage = (method, data, retry = 5, times = 0) => {
4086
4086
  try {
4087
- if (!iframeLoaded) {
4088
- throw new Error("Wallet not ready");
4089
- }
4090
4087
  if (!walletInited) {
4091
4088
  throw new Error("Wallet not inited");
4092
4089
  }
@@ -4094,7 +4091,7 @@ function useWalletInit({
4094
4091
  throw new Error("Wallet not found");
4095
4092
  }
4096
4093
  } catch (error) {
4097
- console.error(`wallet init[${retry}/${times}]`, error);
4094
+ console.error(`wallet init[${times}/${retry}]`, error);
4098
4095
  if (times < retry) {
4099
4096
  setTimeout(() => {
4100
4097
  window.sendMatchWalletMessage(method, data, retry, times + 1);