@loafmarkets/ui 0.1.330 → 0.1.331
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13515,7 +13515,7 @@ var formatTimestamp = (unix) => {
|
|
|
13515
13515
|
});
|
|
13516
13516
|
};
|
|
13517
13517
|
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(" ");
|
|
13518
|
+
var prettyLabel = (value) => (value ?? "").split("_").map((part) => part.charAt(0) + part.slice(1).toLowerCase()).join(" ");
|
|
13519
13519
|
var sideLabel = (side) => side?.toUpperCase() === "SELL" ? "Sell" : "Buy";
|
|
13520
13520
|
var getOrderStatusMeta = (statusRaw) => {
|
|
13521
13521
|
const status = statusRaw.toUpperCase();
|