fix: re-render wallet list after deletion by calling showSettingsView
All checks were successful
check / check (push) Successful in 21s

This commit is contained in:
2026-02-27 14:02:44 -08:00
parent 8893f5dce7
commit 34e29d7659

View File

@@ -21,7 +21,7 @@ function init(_ctx) {
$("btn-delete-wallet-back").addEventListener("click", () => {
deleteWalletIndex = null;
showView("settings");
ctx.showSettingsView();
});
$("btn-delete-wallet-confirm").addEventListener("click", async () => {
@@ -80,9 +80,9 @@ function init(_ctx) {
state.activeAddress =
state.wallets[0].addresses[0]?.address || null;
await saveState();
showFlash("Wallet deleted.");
ctx.renderWalletList();
showView("settings");
ctx.showSettingsView();
showFlash("Wallet deleted.");
}
});
}