fix: a popup that opened on Welcome keeps refreshing once the first wallet is added (closes #530)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run

The ten-second refresh was started only by init(), and only when a wallet
existed as the popup opened, so a popup that opened on Welcome refreshed the
new wallet once and then showed that balance until it was reopened. init()
and the three import paths on AddWallet now call startRefresh(), which
refreshes at once and starts the ten-second refresh unless it is already
running, and does nothing while the recovery screen is up. The two AddWallet
tests that build their own context pass it in place of the refresh they
passed before.

Model: opus-5-5
This commit was merged in pull request #573.
This commit is contained in:
2026-10-19 03:19:53 +02:00
parent b923b2c19c
commit d2fd0f532a
5 changed files with 161 additions and 9 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ beforeEach(() => {
addWallet.init({
renderWalletList: () => {},
doRefreshAndRender: () => {},
startRefresh: () => {},
pageClosed: new AbortController().signal,
});
confirmTx.init({});