@deframe-sdk/components 0.1.39 → 0.1.41

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.mjs CHANGED
@@ -5729,7 +5729,7 @@ var ChooseAnAssetSwapView = ({
5729
5729
  displayedTokens.map((token, index) => {
5730
5730
  const balance = findBalance == null ? void 0 : findBalance(token);
5731
5731
  const priceUSD = Number(balance == null ? void 0 : balance.priceUSD) || token.priceInUSD || 0;
5732
- const formattedBalance = (balance == null ? void 0 : balance.amountUI) ? formatTokenAmount(balance.amountUI, priceUSD, token.decimals) : "0";
5732
+ const formattedBalance = (balance == null ? void 0 : balance.amountUI) ? formatTokenAmount(balance.amountUI, priceUSD) : "0";
5733
5733
  return /* @__PURE__ */ jsxs(
5734
5734
  ListItem,
5735
5735
  {
@@ -8059,9 +8059,9 @@ function AssetRowInline({
8059
8059
  onKeyDown,
8060
8060
  index
8061
8061
  }) {
8062
- var _a;
8063
8062
  const hasBalance = !!balance && parseFloat(balance.amountInUSD) >= 0.01;
8064
- const formattedAmount = balance ? formatTokenAmount(balance.amountUI, (_a = token.priceInUSD) != null ? _a : 0, token.decimals) : void 0;
8063
+ const priceUSD = Number(balance == null ? void 0 : balance.priceUSD) || token.priceInUSD || 0;
8064
+ const formattedAmount = balance ? formatTokenAmount(balance.amountUI, priceUSD) : void 0;
8065
8065
  const formattedUsd = balance ? formatCurrencyValue(parseFloat(balance.amountInUSD)) : void 0;
8066
8066
  const baseClasses = [
8067
8067
  "group",