@matchain/matchid-sdk-react 0.1.9 → 0.1.11

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
@@ -1083,7 +1083,8 @@ function useWallet() {
1083
1083
  did: overview?.did?.split(":")[2] || ""
1084
1084
  });
1085
1085
  } else {
1086
- getSign();
1086
+ await recoveryWallet("ethereum", "user_passcode_recovery_key");
1087
+ await getSign();
1087
1088
  }
1088
1089
  });
1089
1090
  };
@@ -1121,7 +1122,8 @@ function useWallet() {
1121
1122
  did: overview?.did?.split(":")[2] || ""
1122
1123
  });
1123
1124
  } else {
1124
- getSign();
1125
+ await recoveryWallet("ethereum", "user_passcode_recovery_key");
1126
+ await getSign();
1125
1127
  }
1126
1128
  });
1127
1129
  };
@@ -1397,8 +1399,6 @@ function useWalletInit({
1397
1399
  if (existingIframe.src !== endpoints.login + "wallet") {
1398
1400
  setWalletInited(false);
1399
1401
  existingIframe.src = endpoints.login + "wallet";
1400
- } else {
1401
- setWalletInited(true);
1402
1402
  }
1403
1403
  }
1404
1404
  }