@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 CHANGED
@@ -697,14 +697,16 @@ var LaserEyesProvider = ({
697
697
  };
698
698
  }, [library]);
699
699
  (0, import_react.useEffect)(() => {
700
- const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(
701
- LOCAL_STORAGE_DEFAULT_WALLET
702
- );
703
- if (defaultWallet) {
704
- setProvider(defaultWallet);
705
- connect(defaultWallet);
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
- const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(
624
- LOCAL_STORAGE_DEFAULT_WALLET
625
- );
626
- if (defaultWallet) {
627
- setProvider(defaultWallet);
628
- connect(defaultWallet);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnisat/lasereyes",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "sideEffects": false,
5
5
  "private": false,
6
6
  "license": "MIT",