@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.
@@ -1212,10 +1212,11 @@ function UsdApprox({
1212
1212
  }) {
1213
1213
  if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
1214
1214
  const usd = sats / 1e8 * usdPerBtc;
1215
- const text = new Intl.NumberFormat("en-US", {
1215
+ const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
1216
1216
  style: "currency",
1217
1217
  currency: "USD",
1218
- maximumFractionDigits: usd < 1 ? 4 : 2
1218
+ minimumFractionDigits: 2,
1219
+ maximumFractionDigits: 2
1219
1220
  }).format(usd);
1220
1221
  return /* @__PURE__ */ jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
1221
1222
  "\u2248 ",