fix: Back from AddressToken clears the selected token (closes #751)
check / check (push) Successful in 5m30s
e2e / e2e-chrome (push) Successful in 14m1s
e2e / e2e-firefox (push) Successful in 2m34s

AddressDetail's show() clears the token, but "Back" onto a screen already drawn
only unhides it. Send and Receive then kept using the token from AddressToken,
whatever Send's dropdown showed. "Back" now clears the token and puts the
dropdown on ETH.

Model: opus-5-5
This commit is contained in:
2026-11-03 13:43:23 +00:00
parent 39c1ad09c0
commit a31592d3cc
2 changed files with 170 additions and 0 deletions
+5
View File
@@ -360,6 +360,11 @@ function init(_ctx) {
});
$("btn-address-token-back").addEventListener("click", () => {
// AddressDetail's show() clears the token, but Back onto a drawn
// screen only unhides it. "Send" below may have left the dropdown on
// the token as well.
state.selectedToken = null;
$("send-token").value = "ETH";
goBack();
});