@matchain/matchid-sdk-react 0.1.37-alpha.10 → 0.1.37-alpha.12

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.
@@ -9,7 +9,7 @@ import {
9
9
  unBindWalletApi,
10
10
  useUserInfo,
11
11
  verifyPohApi
12
- } from "./chunk-35YNZM5K.mjs";
12
+ } from "./chunk-F5CJROWH.mjs";
13
13
  import {
14
14
  __export
15
15
  } from "./chunk-J5LGTIGS.mjs";
@@ -90,4 +90,4 @@ export {
90
90
  user_exports,
91
91
  api_exports
92
92
  };
93
- //# sourceMappingURL=chunk-336EDRZH.mjs.map
93
+ //# sourceMappingURL=chunk-IHRQKSSO.mjs.map
@@ -1747,14 +1747,9 @@ function PasswordModal({
1747
1747
  return "";
1748
1748
  }, [rePassword, password]);
1749
1749
  (0, import_react6.useEffect)(() => {
1750
- if (isOpen && overview) {
1750
+ if (isOpen) {
1751
1751
  setPassword("");
1752
1752
  setRePassword("");
1753
- const did2 = overview.did.split(":")[2];
1754
- initWallet({
1755
- did: did2,
1756
- address: ""
1757
- });
1758
1753
  }
1759
1754
  }, [isOpen, overview]);
1760
1755
  const [isSubmitting, setIsSubmitting] = (0, import_react6.useState)(false);
@@ -1762,8 +1757,13 @@ function PasswordModal({
1762
1757
  if (isSubmitting) return;
1763
1758
  try {
1764
1759
  setIsSubmitting(true);
1760
+ const did2 = overview ? overview.did.split(":")[2] : "";
1761
+ await initWallet({
1762
+ did: did2,
1763
+ address: ""
1764
+ });
1765
1765
  const address = await generateWallet({
1766
- did: did.split(":")[2],
1766
+ did: did2.split(":")[2],
1767
1767
  userPasscode: password
1768
1768
  });
1769
1769
  await refreshOverview();
@@ -2817,7 +2817,7 @@ function UsernameModal({
2817
2817
  }, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_intl12.FormattedMessage, { id: "confirm" }) }),
2818
2818
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { style: {
2819
2819
  marginTop: isDownMd ? "12px" : "24px"
2820
- }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_intl12.FormattedMessage, { id: "nextTime" }) })
2820
+ }, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_intl12.FormattedMessage, { id: "cancel" }) })
2821
2821
  ] }) });
2822
2822
  }
2823
2823