@lumiapassport/ui-kit 1.13.4 → 1.13.6

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.
@@ -15,7 +15,7 @@
15
15
  <meta http-equiv="X-Content-Type-Options" content="nosniff" />
16
16
  <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
17
17
 
18
- <title>Lumia Passport Secure Wallet - iframe version 1.13.4</title>
18
+ <title>Lumia Passport Secure Wallet - iframe version 1.13.6</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -3964,7 +3964,7 @@ var SigningManager = class extends TokenRefreshApiClient {
3964
3964
  };
3965
3965
 
3966
3966
  // src/iframe/main.ts
3967
- var IFRAME_VERSION = "1.13.4";
3967
+ var IFRAME_VERSION = "1.13.6";
3968
3968
  var IframeWallet = class {
3969
3969
  constructor() {
3970
3970
  console.log("=".repeat(60));
package/dist/index.cjs CHANGED
@@ -4553,7 +4553,7 @@ function BalanceFeedProvider() {
4553
4553
  const isCustom = !!customBalanceSymbol && !!balanceQuery && !!balanceQueryKey;
4554
4554
  setBalanceSymbol(isCustom ? customBalanceSymbol : lumiaBeam.nativeCurrency.symbol);
4555
4555
  }, [config, address]);
4556
- const isNativeBalanceFeedEnabled = balanceSymbol === lumiaBeam.nativeCurrency.symbol;
4556
+ const isNativeBalanceFeedEnabled = balanceSymbol === lumiaBeam?.nativeCurrency?.symbol;
4557
4557
  const { data: balance } = (0, import_wagmi.useBalance)({
4558
4558
  address,
4559
4559
  chainId: lumiaBeam.id,
@@ -4564,9 +4564,9 @@ function BalanceFeedProvider() {
4564
4564
  refetchOnWindowFocus: true
4565
4565
  }
4566
4566
  });
4567
- useLumiaPriceSSE(isNativeBalanceFeedEnabled, (update) => setCryptoRate(update.price || 1));
4567
+ useLumiaPriceSSE(isNativeBalanceFeedEnabled, (update) => setCryptoRate(update?.price || 1));
4568
4568
  (0, import_react2.useEffect)(() => {
4569
- if (!isNativeBalanceFeedEnabled || !balance.value) return;
4569
+ if (!isNativeBalanceFeedEnabled || !balance?.value) return;
4570
4570
  setCryptoSymbol("LUMIA");
4571
4571
  setFiatSymbol("USD");
4572
4572
  setFiatBalance(Number(balance?.formatted || 0) * cryptoRate);
@@ -4610,7 +4610,7 @@ var import_react44 = require("react");
4610
4610
  // package.json
4611
4611
  var package_default = {
4612
4612
  name: "@lumiapassport/ui-kit",
4613
- version: "1.13.4",
4613
+ version: "1.13.6",
4614
4614
  description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
4615
4615
  type: "module",
4616
4616
  main: "./dist/index.cjs",