fix: reset validation state when navigating to send view
check / check (push) Successful in 22s

Clear the error/warning text and disable the review button when entering
the send view from home, address detail, or address token views. This
prevents stale validation messages from persisting after leaving and
returning to the send view.
Этот коммит содержится в:
user
2026-02-28 12:17:52 -08:00
родитель ef2f862d23
Коммит 9de7791553
4 изменённых файлов: 34 добавлений и 4 удалений
+6 -1
Просмотреть файл
@@ -23,7 +23,11 @@ const {
filterTransactions,
} = require("../../shared/transactions");
const { resolveEnsNames } = require("../../shared/ens");
const { updateSendBalance, renderSendTokenSelect } = require("./send");
const {
updateSendBalance,
renderSendTokenSelect,
resetSendValidation,
} = require("./send");
const { log } = require("../../shared/log");
const makeBlockie = require("ethereum-blockies-base64");
@@ -372,6 +376,7 @@ function init(_ctx) {
});
}
updateSendBalance();
resetSendValidation();
showView("send");
});