@omnisat/lasereyes 0.0.25 → 0.0.26
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 +9 -7
- package/dist/index.mjs +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -697,14 +697,16 @@ var LaserEyesProvider = ({
|
|
|
697
697
|
};
|
|
698
698
|
}, [library]);
|
|
699
699
|
(0, import_react.useEffect)(() => {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
700
|
+
if (!isInitializing) {
|
|
701
|
+
const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(
|
|
702
|
+
LOCAL_STORAGE_DEFAULT_WALLET
|
|
703
|
+
);
|
|
704
|
+
if (defaultWallet) {
|
|
705
|
+
setProvider(defaultWallet);
|
|
706
|
+
connect(defaultWallet);
|
|
707
|
+
}
|
|
706
708
|
}
|
|
707
|
-
}, []);
|
|
709
|
+
}, [isInitializing]);
|
|
708
710
|
const connectUnisat = (0, import_react.useCallback)(() => __async(void 0, null, function* () {
|
|
709
711
|
try {
|
|
710
712
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, UNISAT);
|
package/dist/index.mjs
CHANGED
|
@@ -620,14 +620,16 @@ var LaserEyesProvider = ({
|
|
|
620
620
|
};
|
|
621
621
|
}, [library]);
|
|
622
622
|
useEffect(() => {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
623
|
+
if (!isInitializing) {
|
|
624
|
+
const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(
|
|
625
|
+
LOCAL_STORAGE_DEFAULT_WALLET
|
|
626
|
+
);
|
|
627
|
+
if (defaultWallet) {
|
|
628
|
+
setProvider(defaultWallet);
|
|
629
|
+
connect(defaultWallet);
|
|
630
|
+
}
|
|
629
631
|
}
|
|
630
|
-
}, []);
|
|
632
|
+
}, [isInitializing]);
|
|
631
633
|
const connectUnisat = useCallback(() => __async(void 0, null, function* () {
|
|
632
634
|
try {
|
|
633
635
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, UNISAT);
|