Fix accounts dialog showing up when it shouldn't (#40)

This commit is contained in:
Nathaniel Parke 2020-11-12 08:38:49 +08:00 committed by GitHub
parent 0e50f86228
commit 921f80dc96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,10 @@ export default function DeleteAccountDialog({open, onClose, isDeleteAccountEnabl
<DialogForm
open={open}
onClose={onClose}
onSubmit={forgetWallet}
onSubmit={() => {
forgetWallet();
onClose();
}}
fullWidth
>
<DialogTitle>Delete Account</DialogTitle>