From 54cb9c9e1764ac1976ffc85422fa08a25ce24af5 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 18 Feb 2024 18:34:23 +0100 Subject: [PATCH] fix: password error when using gmail auth --- frontend/src/ts/popups/simple-popups.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/popups/simple-popups.ts b/frontend/src/ts/popups/simple-popups.ts index af60a3841..41ea889de 100644 --- a/frontend/src/ts/popups/simple-popups.ts +++ b/frontend/src/ts/popups/simple-popups.ts @@ -434,8 +434,9 @@ async function reauthenticate( const user = getAuthenticatedUser(); try { - const passwordAuthEnabled = - user.providerData.some((p) => p?.providerId === "password") !== undefined; + const passwordAuthEnabled = user.providerData.some( + (p) => p?.providerId === "password" + ); if (!passwordAuthEnabled && method === "passwordOnly") { return {