@orangecheck/app-design 0.5.6 → 0.5.7

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
@@ -2210,10 +2210,11 @@ function UsdApprox({
2210
2210
  }) {
2211
2211
  if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
2212
2212
  const usd = sats / 1e8 * usdPerBtc;
2213
- const text = new Intl.NumberFormat("en-US", {
2213
+ const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
2214
2214
  style: "currency",
2215
2215
  currency: "USD",
2216
- maximumFractionDigits: usd < 1 ? 4 : 2
2216
+ minimumFractionDigits: 2,
2217
+ maximumFractionDigits: 2
2217
2218
  }).format(usd);
2218
2219
  return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
2219
2220
  "\u2248 ",