@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.
package/dist/index.js CHANGED
@@ -4512,7 +4512,7 @@ function BalanceFeedProvider() {
4512
4512
  const isCustom = !!customBalanceSymbol && !!balanceQuery && !!balanceQueryKey;
4513
4513
  setBalanceSymbol(isCustom ? customBalanceSymbol : lumiaBeam.nativeCurrency.symbol);
4514
4514
  }, [config, address]);
4515
- const isNativeBalanceFeedEnabled = balanceSymbol === lumiaBeam.nativeCurrency.symbol;
4515
+ const isNativeBalanceFeedEnabled = balanceSymbol === lumiaBeam?.nativeCurrency?.symbol;
4516
4516
  const { data: balance } = useBalance({
4517
4517
  address,
4518
4518
  chainId: lumiaBeam.id,
@@ -4523,9 +4523,9 @@ function BalanceFeedProvider() {
4523
4523
  refetchOnWindowFocus: true
4524
4524
  }
4525
4525
  });
4526
- useLumiaPriceSSE(isNativeBalanceFeedEnabled, (update) => setCryptoRate(update.price || 1));
4526
+ useLumiaPriceSSE(isNativeBalanceFeedEnabled, (update) => setCryptoRate(update?.price || 1));
4527
4527
  useEffect2(() => {
4528
- if (!isNativeBalanceFeedEnabled || !balance.value) return;
4528
+ if (!isNativeBalanceFeedEnabled || !balance?.value) return;
4529
4529
  setCryptoSymbol("LUMIA");
4530
4530
  setFiatSymbol("USD");
4531
4531
  setFiatBalance(Number(balance?.formatted || 0) * cryptoRate);
@@ -4569,7 +4569,7 @@ import { useEffect as useEffect29 } from "react";
4569
4569
  // package.json
4570
4570
  var package_default = {
4571
4571
  name: "@lumiapassport/ui-kit",
4572
- version: "1.13.4",
4572
+ version: "1.13.6",
4573
4573
  description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
4574
4574
  type: "module",
4575
4575
  main: "./dist/index.cjs",