Skip to content

Commit d483f9d

Browse files
committed
Close delete modal after delete confirmation
1 parent a1f17df commit d483f9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/components/common/delete-account-modal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ const DeleteAccountModal: React.FC<DeleteAccountModalProps> = ({
6767
</Button>
6868
<Button
6969
variant="destructive"
70-
onClick={handleDeleteAccount}
70+
onClick={() => {
71+
setShowDeleteModal(false);
72+
handleDeleteAccount();
73+
}}
7174
disabled={!isDeleteButtonEnabled}
7275
>
7376
Delete Account

0 commit comments

Comments
 (0)