aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 795ccc3..a7feb75 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2141,7 +2141,15 @@ function receiveTab() {
// (receives Ark and Lightning), Savings shows a fresh on-chain address.
const fresh = wallet.freshReceive();
const nameMode = featureAll('receiveModes').find((m) => m.id === 'name');
- if (accountSel() === 'spending' && nameMode) return nameMode.render(null);
+ if (accountSel() === 'spending') {
+ // Spending needs the network (registrar + ark); offline, offer the
+ // on-chain path right here instead of an endless spinner.
+ if (wallet.offline)
+ return h('div', { class: 'card col', style: 'gap:12px' },
+ h('div', { class: 'notice info' }, t('receiveOfflineSpending')),
+ h('button', { class: 'btn-primary btn-block', onClick: () => setAccountSel('savings') }, t('receiveUseSavings')));
+ if (nameMode) return nameMode.render(null);
+ }
const addr = fresh.address;
return h(
'div',