Merge pull request #64 from MutinyWallet/delete-flow

Delete Improvements
This commit is contained in:
Paul Miller
2023-04-28 14:39:13 -05:00
committed by GitHub

View File

@@ -23,13 +23,14 @@ export function DeleteEverything() {
async function resetNode() {
setConfirmLoading(true);
deleteDb("gossip")
deleteDb("wallet")
localStorage.clear();
showToast({ title: "Deleted", description: `Deleted all data` })
setConfirmOpen(false);
setConfirmLoading(false);
setTimeout(() => {
window.location.reload();
}, 1000);
window.location.href = "/";
}, 3000);
}
async function confirmReset() {