@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.mjs CHANGED
@@ -13489,7 +13489,7 @@ var formatTimestamp = (unix) => {
13489
13489
  });
13490
13490
  };
13491
13491
  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(" ");
13492
+ var prettyLabel = (value) => (value ?? "").split("_").map((part) => part.charAt(0) + part.slice(1).toLowerCase()).join(" ");
13493
13493
  var sideLabel = (side) => side?.toUpperCase() === "SELL" ? "Sell" : "Buy";
13494
13494
  var getOrderStatusMeta = (statusRaw) => {
13495
13495
  const status = statusRaw.toUpperCase();