@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/components.js +3 -2
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +3 -2
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1234,10 +1234,11 @@ function UsdApprox({
|
|
|
1234
1234
|
}) {
|
|
1235
1235
|
if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
|
|
1236
1236
|
const usd = sats / 1e8 * usdPerBtc;
|
|
1237
|
-
const text = new Intl.NumberFormat("en-US", {
|
|
1237
|
+
const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
|
|
1238
1238
|
style: "currency",
|
|
1239
1239
|
currency: "USD",
|
|
1240
|
-
|
|
1240
|
+
minimumFractionDigits: 2,
|
|
1241
|
+
maximumFractionDigits: 2
|
|
1241
1242
|
}).format(usd);
|
|
1242
1243
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
|
|
1243
1244
|
"\u2248 ",
|