feat: transfer completed and pending documents to deleted email

This commit is contained in:
Ephraim Atta-Duncan
2024-02-05 12:47:22 +00:00
parent 4d93ed60c5
commit 4c09867b55
3 changed files with 24 additions and 14 deletions

View File

@ -131,8 +131,6 @@ export const ProfileForm = ({ className, user }: ProfileFormProps) => {
const { token } = deleteAccountTwoFactorTokenForm.getValues();
console.log(token);
if (!token) {
throw new Error('Please enter your Two Factor Authentication token.');
}
@ -241,14 +239,7 @@ export const ProfileForm = ({ className, user }: ProfileFormProps) => {
>
<Dialog>
<DialogTrigger asChild>
<Button
onClick={() => {
console.log(user);
}}
variant="destructive"
>
Delete Account
</Button>
<Button variant="destructive">Delete Account</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader>