From d0ad3a6590d783f1c88fb993ddc06d28ee0497b5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 21 Sep 2026 16:32:56 -0700 Subject: Balance: a wallet opening starts its numbers fresh, never counting from the last account's. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp --- src/app.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/app.js b/src/app.js index 96f47f9..a644cbd 100644 --- a/src/app.js +++ b/src/app.js @@ -1334,6 +1334,10 @@ async function openWallet(input, opts = {}) { // Register a full (seed) wallet as an account and open it. async function enterWallet(mnemonic, passphrase, opts = {}) { + // A wallet opening is a new set of numbers: the count-up animation must + // not run from the previous account's balance (a fresh wallet used to + // count DOWN from the old one to zero). + _amtLast.clear(); const acc = addOrGetAccount({ type: 'full', label: defaultLabel('full'), -- cgit v1.2.3