@loafmarkets/ui 0.1.330 → 0.1.332

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
@@ -1979,8 +1979,9 @@ var Orderbook = React5__namespace.forwardRef(
1979
1979
  bidCumDepths[i] = acc;
1980
1980
  }
1981
1981
  }
1982
- const askMaxCumDepth = Math.max(1, ...askCumDepths);
1983
- const bidMaxCumDepth = Math.max(1, ...bidCumDepths);
1982
+ const combinedMaxCumDepth = Math.max(1, ...askCumDepths, ...bidCumDepths);
1983
+ const askMaxCumDepth = combinedMaxCumDepth;
1984
+ const bidMaxCumDepth = combinedMaxCumDepth;
1984
1985
  const midClass = midChangePercent == null ? "text-white" : midChangePercent >= 0 ? "text-[#0ecb81]" : "text-[#f6465d]";
1985
1986
  const tradeFiltered = trades.filter((t) => tradeFilter === "all" || t.type === tradeFilter);
1986
1987
  const layoutProps = {
@@ -13515,7 +13516,7 @@ var formatTimestamp = (unix) => {
13515
13516
  });
13516
13517
  };
13517
13518
  var formatAddress = (address) => `${address.slice(0, 6)}...${address.slice(-4)}`;
13518
- var prettyLabel = (value) => value.split("_").map((part) => part.charAt(0) + part.slice(1).toLowerCase()).join(" ");
13519
+ var prettyLabel = (value) => (value ?? "").split("_").map((part) => part.charAt(0) + part.slice(1).toLowerCase()).join(" ");
13519
13520
  var sideLabel = (side) => side?.toUpperCase() === "SELL" ? "Sell" : "Buy";
13520
13521
  var getOrderStatusMeta = (statusRaw) => {
13521
13522
  const status = statusRaw.toUpperCase();