aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/ark.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/ark.js')
-rw-r--r--src/features/ark.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/ark.js b/src/features/ark.js
index 90b2a01..d5b6e7f 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -1223,7 +1223,7 @@ export function arkFeature(ctx) {
}
return Math.max(0, amt);
}
- const amountFill = (sat) => (ctx.getUnit() === 'sats' ? String(sat) : (sat / 1e8).toFixed(8));
+ const amountFill = (sat) => ctx.amountField(sat);
// Auto-pay progress + success as ONE structurally identical card, so the
// paying → paid step is a class flip (spinner ring settles into the green
@@ -3651,7 +3651,7 @@ export function arkFeature(ctx) {
? (arkBalance()?.spendableSat || 0)
: maxBoardSat();
if (!sat) return null;
- return ctx.getUnit() === 'sats' ? String(sat) : (sat / 1e8).toFixed(8);
+ return ctx.amountField(sat);
},
sendFormNote(a) {
if (!isArkAddress(a)) return null;