@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 +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1953,8 +1953,9 @@ var Orderbook = React5.forwardRef(
|
|
|
1953
1953
|
bidCumDepths[i] = acc;
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
const
|
|
1957
|
-
const
|
|
1956
|
+
const combinedMaxCumDepth = Math.max(1, ...askCumDepths, ...bidCumDepths);
|
|
1957
|
+
const askMaxCumDepth = combinedMaxCumDepth;
|
|
1958
|
+
const bidMaxCumDepth = combinedMaxCumDepth;
|
|
1958
1959
|
const midClass = midChangePercent == null ? "text-white" : midChangePercent >= 0 ? "text-[#0ecb81]" : "text-[#f6465d]";
|
|
1959
1960
|
const tradeFiltered = trades.filter((t) => tradeFilter === "all" || t.type === tradeFilter);
|
|
1960
1961
|
const layoutProps = {
|
|
@@ -13489,7 +13490,7 @@ var formatTimestamp = (unix) => {
|
|
|
13489
13490
|
});
|
|
13490
13491
|
};
|
|
13491
13492
|
var formatAddress = (address) => `${address.slice(0, 6)}...${address.slice(-4)}`;
|
|
13492
|
-
var prettyLabel = (value) => value.split("_").map((part) => part.charAt(0) + part.slice(1).toLowerCase()).join(" ");
|
|
13493
|
+
var prettyLabel = (value) => (value ?? "").split("_").map((part) => part.charAt(0) + part.slice(1).toLowerCase()).join(" ");
|
|
13493
13494
|
var sideLabel = (side) => side?.toUpperCase() === "SELL" ? "Sell" : "Buy";
|
|
13494
13495
|
var getOrderStatusMeta = (statusRaw) => {
|
|
13495
13496
|
const status = statusRaw.toUpperCase();
|