fix: Back from AddressToken clears the selected token (closes #751)
check / check (push) Successful in 5m14s
e2e / e2e-chrome (push) Successful in 13m55s
e2e / e2e-firefox (push) Successful in 2m21s

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 was merged in pull request #752.
This commit is contained in:
clawbot committed 2026-11-03 15:27:40 +01:00
1 parent 39c58b8775
commit e438272125
2 files changed
+170

No files matched your search

+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();
});