@sundaeswap/wallet-lite 0.0.35 → 0.0.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sundaeswap/wallet-lite",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -57,7 +57,7 @@ const WalletObserverProvider: FC<
57
57
  WalletObserver.PERSISTENCE_CACHE_KEY
58
58
  ) as TSupportedWalletExtensions;
59
59
 
60
- if (wallet) {
60
+ if (wallet && options?.observerOptions?.persistence) {
61
61
  state.connectWallet(JSON.parse(wallet).activeWallet);
62
62
  }
63
63
  }, []);
@@ -25,7 +25,7 @@ export const useWalletObserverState = <
25
25
  ) => {
26
26
  const [activeWallet, setActiveWallet] =
27
27
  useState<TSupportedWalletExtensions>();
28
- const [adaBalance, setAdaBalance] = useState<AssetAmount>(
28
+ const [adaBalance, setAdaBalance] = useState<AssetAmount<AssetMetadata>>(
29
29
  new AssetAmount<AssetMetadata>(0n)
30
30
  );
31
31
  const [handleMetadata, setHandleMetadata] = useState<