From 40c26324c556dc47be7e392391420183a36a6c3d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 4 Aug 2026 07:32:49 -0700 Subject: More options also points at Savings for a plain on-chain address Not a pane of its own: a regular Bitcoin address means receiving to Savings, so the entry switches the account selector over and lets the savings receive view show its fresh address. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_015QwAtBSpKvECqp1rHLHjJk --- src/features/names.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/features/names.js') diff --git a/src/features/names.js b/src/features/names.js index 47bf0c6..afd681c 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -23,7 +23,7 @@ const DOMAIN = 'coinos.io'; const AUTH_KIND = 21353; export function namesFeature(ctx) { - const { h, ui, render, wallet, hook, toast, copy, copyBtn, brandHeader, goBack } = ctx; + const { h, ui, render, wallet, hook, toast, copy, copyBtn, brandHeader, goBack, setAccount } = ctx; // The wallet's own key signs registrar requests: it's the one key that is // always available — offline, in the background, with no signer attached. @@ -479,7 +479,12 @@ export function namesFeature(ctx) { opt('bolt11', t('namesMoreBolt11'), t('namesMoreBolt11How')), opt('bolt12', t('namesMoreBolt12'), t('namesMoreBolt12How'), loadOffers), opt('ark', t('namesMoreArk'), t('namesMoreArkHow')), - opt('clink', t('namesMoreClink'), t('namesMoreClinkHow'))); + opt('clink', t('namesMoreClink'), t('namesMoreClinkHow')), + // Not a pane: a plain on-chain address means receiving to Savings, so + // this hands over to the savings receive view instead of showing a + // second address here. + opt('onchain', t('namesMoreOnchain'), t('namesMoreOnchainHow'), + () => { ui.namesMore = null; setAccount('savings'); })); } function moreSection() { -- cgit v1.2.3