fix: re-render wallet list after deletion by calling showSettingsView
All checks were successful
check / check (push) Successful in 21s
All checks were successful
check / check (push) Successful in 21s
This commit is contained in:
@@ -21,7 +21,7 @@ function init(_ctx) {
|
|||||||
|
|
||||||
$("btn-delete-wallet-back").addEventListener("click", () => {
|
$("btn-delete-wallet-back").addEventListener("click", () => {
|
||||||
deleteWalletIndex = null;
|
deleteWalletIndex = null;
|
||||||
showView("settings");
|
ctx.showSettingsView();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("btn-delete-wallet-confirm").addEventListener("click", async () => {
|
$("btn-delete-wallet-confirm").addEventListener("click", async () => {
|
||||||
@@ -80,9 +80,9 @@ function init(_ctx) {
|
|||||||
state.activeAddress =
|
state.activeAddress =
|
||||||
state.wallets[0].addresses[0]?.address || null;
|
state.wallets[0].addresses[0]?.address || null;
|
||||||
await saveState();
|
await saveState();
|
||||||
showFlash("Wallet deleted.");
|
|
||||||
ctx.renderWalletList();
|
ctx.renderWalletList();
|
||||||
showView("settings");
|
ctx.showSettingsView();
|
||||||
|
showFlash("Wallet deleted.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user