@omnisat/lasereyes 0.0.7 → 0.0.8

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
@@ -348,7 +348,6 @@ var LaserEyesProvider = ({
348
348
  const [network, setNetwork] = (0, import_usehooks_ts.useLocalStorage)("network", MAINNET, {
349
349
  initializeWithValue: false
350
350
  });
351
- const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(LOCAL_STORAGE_DEFAULT_WALLET);
352
351
  (0, import_react.useEffect)(() => {
353
352
  if (config) {
354
353
  setNetwork(config.network);
@@ -383,6 +382,9 @@ var LaserEyesProvider = ({
383
382
  };
384
383
  }, [library]);
385
384
  (0, import_react.useEffect)(() => {
385
+ const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(
386
+ LOCAL_STORAGE_DEFAULT_WALLET
387
+ );
386
388
  if (defaultWallet && !isConnecting) {
387
389
  setProvider(defaultWallet);
388
390
  connect(defaultWallet);
package/dist/index.mjs CHANGED
@@ -282,7 +282,6 @@ var LaserEyesProvider = ({
282
282
  const [network, setNetwork] = useLocalStorage("network", MAINNET, {
283
283
  initializeWithValue: false
284
284
  });
285
- const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(LOCAL_STORAGE_DEFAULT_WALLET);
286
285
  useEffect(() => {
287
286
  if (config) {
288
287
  setNetwork(config.network);
@@ -317,6 +316,9 @@ var LaserEyesProvider = ({
317
316
  };
318
317
  }, [library]);
319
318
  useEffect(() => {
319
+ const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(
320
+ LOCAL_STORAGE_DEFAULT_WALLET
321
+ );
320
322
  if (defaultWallet && !isConnecting) {
321
323
  setProvider(defaultWallet);
322
324
  connect(defaultWallet);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnisat/lasereyes",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "sideEffects": false,
5
5
  "private": false,
6
6
  "license": "MIT",