Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(photos):keep-two-factor-search-navigation-only

Aswin Asokc0b145dec615
diff --git a/web/apps/photos/src/components/sidebar/accounts/Account.tsx b/web/apps/photos/src/components/sidebar/accounts/Account.tsx
index 164fb5f436..2239ec7742 100644
--- a/web/apps/photos/src/components/sidebar/accounts/Account.tsx
+++ b/web/apps/photos/src/components/sidebar/accounts/Account.tsx
@@ -266,8 +266,7 @@ export const Account: React.FC<AccountProps> = ({
useEffect(() => {
if (!open || !pendingAction) return;
if (
- (pendingAction == "account.twoFactor" ||
- pendingAction == "account.twoFactor.reconfigure") &&
+ pendingAction == "account.twoFactor.reconfigure" &&
twoFactorEnabled === undefined
)
return;
@@ -282,7 +281,6 @@ export const Account: React.FC<AccountProps> = ({
handleReconfigureTwoFactor();
break;
case "account.twoFactor":
- handleTwoFactorToggle();
break;
case "account.passkeys":
void handlePasskeys();
@@ -313,7 +311,6 @@ export const Account: React.FC<AccountProps> = ({
onActionHandled,
pendingAction,
handleReconfigureTwoFactor,
- handleTwoFactorToggle,
twoFactorEnabled,
]);