aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index a298fad..5f1f412 100644
--- a/src/app.js
+++ b/src/app.js
@@ -125,10 +125,11 @@ function copyBtn(text, label = 'Copy') {
// logouts. Every unit label on the site is clickable to toggle it.
const UNIT_KEY = 'btc-wallet-unit';
let unit = (() => {
+ // Default to sats for first-time users; only an explicit 'btc' choice sticks.
try {
- return localStorage.getItem(UNIT_KEY) === 'sats' ? 'sats' : 'btc';
+ return localStorage.getItem(UNIT_KEY) === 'btc' ? 'btc' : 'sats';
} catch {
- return 'btc';
+ return 'sats';
}
})();