From 060f19b5c857dceb844fc81272d61a8b93db8be2 Mon Sep 17 00:00:00 2001 From: Isha Dubey Date: Wed, 21 Aug 2024 14:56:08 +0530 Subject: [PATCH] fix: removed check for updates [#1020] --- src/pages/Auth/entry-point/EntryPoint.svelte | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/pages/Auth/entry-point/EntryPoint.svelte b/src/pages/Auth/entry-point/EntryPoint.svelte index d6e4915..6369a98 100644 --- a/src/pages/Auth/entry-point/EntryPoint.svelte +++ b/src/pages/Auth/entry-point/EntryPoint.svelte @@ -65,16 +65,8 @@ entryLoader = true; const response = await handleEntry(entryCredentials); if (response.isSuccessful) { - if (response?.data?.registeredWith === 'google') { - // Registered with google auth - isEntry = true; - redirectRules.title = `Redirecting you to sign in with google account...`; - redirectRules.description = `${entryCredentials?.email} is already registered using google account.`; - redirectRules.loadingMessage = `Please wait while we are redirecting you to your google account....`; - setTimeout(() => { - navigate(constants.SPARROW_OAUTH); - }, 1000); - } else if (response?.data?.registeredWith === 'email') { + + if (response?.data?.registeredWith === 'email' || response?.data?.registeredWith === 'google') { // registered with email isEntry = true; redirectRules.title = `Redirecting to your account...`;