aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-30 21:37:07 -0700
committerAdam Soltys <[email protected]>2026-08-30 21:37:07 -0700
commit3acc52af43148b7743fcd00361bcb8d050207651 (patch)
treef8446009100cacf462f5d37abb226e03e0400adf /src/features
parent74490be0d54f2e1587b45acd28bd5f95668ef7e0 (diff)
downloadcoinosv3-3acc52af43148b7743fcd00361bcb8d050207651.tar.gz
coinosv3-3acc52af43148b7743fcd00361bcb8d050207651.zip
The username claim field forgets its draft when a wallet opens: a name typed before logout used to greet whichever account opened next on the device (the field lives in global UI state and nothing ever reset it)
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr
Diffstat (limited to 'src/features')
-rw-r--r--src/features/names.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/features/names.js b/src/features/names.js
index f794790..a360598 100644
--- a/src/features/names.js
+++ b/src/features/names.js
@@ -734,7 +734,13 @@ export function namesFeature(ctx) {
return {
id: 'names',
- init() { checked = false; lastError = null; refresh(); },
+ init() {
+ checked = false; lastError = null;
+ // The claim field is a draft for THIS account — a name typed before a
+ // logout used to greet the next account that opened on this device.
+ ui.nameClaim = null; ui.nameClaimError = null; suggestedFor = null;
+ refresh();
+ },
// The pencil by the address opens this: choosing a name gets a page of
// its own — no balances, no tabs, just the name.
screenView() {