Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

chore(DeleteAccount):moved-final-authentication

Aswin Asok219e198b1b4a
diff --git a/web/apps/photos/src/components/DeleteAccount.tsx b/web/apps/photos/src/components/DeleteAccount.tsx
index 09f54eec97..94f55265d8 100644
--- a/web/apps/photos/src/components/DeleteAccount.tsx
+++ b/web/apps/photos/src/components/DeleteAccount.tsx
@@ -156,7 +156,6 @@ const DeleteAccountDialogContents: React.FC<
if (step == "reason") {
try {
setLoading(true);
- await onAuthenticateUser();
setStep("confirmation");
await loadSummary();
} catch (e) {
@@ -175,6 +174,7 @@ const DeleteAccountDialogContents: React.FC<
await getAccountDeleteChallenge();
if (allowDelete && encryptedChallenge) {
+ await onAuthenticateUser();
const decryptedChallenge =
await decryptDeleteAccountChallenge(encryptedChallenge);
await deleteAccount(