diff options
| author | Adam Soltys <[email protected]> | 2026-08-28 19:27:40 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-28 19:27:40 -0700 |
| commit | 12ecbf2bcdd59b6c3a2714c69240cb3be65b7e3e (patch) | |
| tree | cdd1c1f27b5fb0d35d802d0c358cca85e8f06675 | |
| parent | a8e4358fd2b869a9471e265b11c1bda18764dfbe (diff) | |
| download | coinosv3-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
| -rw-r--r-- | src/app.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); } |
