aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-28 19:27:40 -0700
committerAdam Soltys <[email protected]>2026-08-28 19:27:40 -0700
commit12ecbf2bcdd59b6c3a2714c69240cb3be65b7e3e (patch)
treecdd1c1f27b5fb0d35d802d0c358cca85e8f06675 /src
parenta8e4358fd2b869a9471e265b11c1bda18764dfbe (diff)
downloadcoinosv3-12ecbf2bcdd59b6c3a2714c69240cb3be65b7e3e.tar.gz
coinosv3-12ecbf2bcdd59b6c3a2714c69240cb3be65b7e3e.zip
A detail page doesn't survive changing accounts: switching Spending↔Savings with a payment record open closes it and lands on Receive — the record belonged to the other side
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi
Diffstat (limited to 'src')
-rw-r--r--src/app.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index 4792f57..310e724 100644
--- a/src/app.js
+++ b/src/app.js
@@ -3164,6 +3164,12 @@ function setAccountSel(a, dir) {
_accDir = dir || (a === 'savings' ? 'left' : 'right');
ui.account = a;
try { localStorage.setItem(ACCOUNT_KEY, a); } catch {}
+ // A payment's detail page belongs to the account it was opened from —
+ // switching accounts closes it and lands on Receive.
+ if (ui.txDetail || ui.arkMoveDetail || ui.arkExitDetail || ui.giftDetail) {
+ ui.txDetail = null; ui.arkMoveDetail = null; ui.arkExitDetail = null; ui.giftDetail = null;
+ ui.tab = 'receive';
+ }
render();
}