aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-01 17:07:21 -0700
committerAdam Soltys <[email protected]>2026-10-01 17:07:21 -0700
commit08929aa42cdc74c3fe29007ceee3c2f8e06e6667 (patch)
tree5f5f0140cd420b4955ac115f6cffd488bee4a719 /src/app.js
parent62b6b80d9c8d03d6caadb0648059ba94e34f8b1d (diff)
downloadcoinosv3-08929aa42cdc74c3fe29007ceee3c2f8e06e6667.tar.gz
coinosv3-08929aa42cdc74c3fe29007ceee3c2f8e06e6667.zip
Add cooperative coin exits and clarify profile, preview and zap controls
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index 2d9611a..b2584c2 100644
--- a/src/app.js
+++ b/src/app.js
@@ -5723,8 +5723,8 @@ const ctx = {
// as money landing: without this the balance counts up from 0 in green,
// which is the celebration a received payment gets.
forgetAmountAnim: () => _amtLast.clear(),
- // the one-tap zap amount, synced across devices with the rest of the state
- zapDefaultSat: () => (wallet.loadFeatureState ? (wallet.loadFeatureState('prefs', {}).zapSat || 0) : 0),
+ // Start at 21 sats; an explicitly saved preference wins across devices.
+ zapDefaultSat: () => (wallet.loadFeatureState ? (wallet.loadFeatureState('prefs', {}).zapSat ?? 21) : 21),
setZapDefaultSat: (n) => {
const p = wallet.loadFeatureState('prefs', {});
p.zapSat = Math.max(1, Math.floor(n) || 0);