@matchain/matchid-sdk-react 0.1.37-alpha.10 → 0.1.37-alpha.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/{chunk-35YNZM5K.mjs → chunk-HTYFFIQV.mjs} +13 -13
- package/dist/chunk-HTYFFIQV.mjs.map +1 -0
- package/dist/{chunk-336EDRZH.mjs → chunk-WIU5CDQ6.mjs} +2 -2
- package/dist/components/index.js +7 -7
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-35YNZM5K.mjs.map +0 -1
- /package/dist/{chunk-336EDRZH.mjs.map → chunk-WIU5CDQ6.mjs.map} +0 -0
|
@@ -565,14 +565,9 @@ function PasswordModal({
|
|
|
565
565
|
return "";
|
|
566
566
|
}, [rePassword, password]);
|
|
567
567
|
useEffect2(() => {
|
|
568
|
-
if (isOpen
|
|
568
|
+
if (isOpen) {
|
|
569
569
|
setPassword("");
|
|
570
570
|
setRePassword("");
|
|
571
|
-
const did2 = overview.did.split(":")[2];
|
|
572
|
-
initWallet({
|
|
573
|
-
did: did2,
|
|
574
|
-
address: ""
|
|
575
|
-
});
|
|
576
571
|
}
|
|
577
572
|
}, [isOpen, overview]);
|
|
578
573
|
const [isSubmitting, setIsSubmitting] = useState3(false);
|
|
@@ -580,8 +575,13 @@ function PasswordModal({
|
|
|
580
575
|
if (isSubmitting) return;
|
|
581
576
|
try {
|
|
582
577
|
setIsSubmitting(true);
|
|
578
|
+
const did2 = overview ? overview.did.split(":")[2] : "";
|
|
579
|
+
await initWallet({
|
|
580
|
+
did: did2,
|
|
581
|
+
address: ""
|
|
582
|
+
});
|
|
583
583
|
const address = await generateWallet({
|
|
584
|
-
did:
|
|
584
|
+
did: did2.split(":")[2],
|
|
585
585
|
userPasscode: password
|
|
586
586
|
});
|
|
587
587
|
await refreshOverview();
|
|
@@ -667,11 +667,6 @@ function RecoveryModal({
|
|
|
667
667
|
useEffect3(() => {
|
|
668
668
|
if (isOpen && overview) {
|
|
669
669
|
setPassword("");
|
|
670
|
-
const did = overview.did.split(":")[2];
|
|
671
|
-
initWallet({
|
|
672
|
-
did,
|
|
673
|
-
address: overview.address
|
|
674
|
-
});
|
|
675
670
|
}
|
|
676
671
|
}, [isOpen, overview]);
|
|
677
672
|
const [isSubmitting, setIsSubmitting] = useState4(false);
|
|
@@ -679,6 +674,11 @@ function RecoveryModal({
|
|
|
679
674
|
if (isSubmitting) return;
|
|
680
675
|
try {
|
|
681
676
|
setIsSubmitting(true);
|
|
677
|
+
const did = overview ? overview.did.split(":")[2] : "";
|
|
678
|
+
await initWallet({
|
|
679
|
+
did,
|
|
680
|
+
address: overview?.address || ""
|
|
681
|
+
});
|
|
682
682
|
await recoveryWallet("ethereum", "user_passcode_recovery_key", password);
|
|
683
683
|
await refreshOverview();
|
|
684
684
|
onSuccess && onSuccess();
|
|
@@ -3882,4 +3882,4 @@ export {
|
|
|
3882
3882
|
MatchProvider,
|
|
3883
3883
|
useMatch
|
|
3884
3884
|
};
|
|
3885
|
-
//# sourceMappingURL=chunk-
|
|
3885
|
+
//# sourceMappingURL=chunk-HTYFFIQV.mjs.map
|