From 3ddaf795f2b77d751a6a6f15f5d303fef8f7b69c Mon Sep 17 00:00:00 2001 From: Stanislav Lunyachek Date: Fri, 12 Apr 2024 01:25:13 +0300 Subject: [PATCH] feat: Hide preloaders for third party auth providers if they are disabled --- src/common-components/ThirdPartyAuth.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common-components/ThirdPartyAuth.jsx b/src/common-components/ThirdPartyAuth.jsx index 3b78203605..7dcef3e11b 100644 --- a/src/common-components/ThirdPartyAuth.jsx +++ b/src/common-components/ThirdPartyAuth.jsx @@ -37,6 +37,7 @@ const ThirdPartyAuth = (props) => { const isSocialAuthActive = !!providers.length && !currentProvider; const isEnterpriseLoginDisabled = getConfig().DISABLE_ENTERPRISE_LOGIN; const enterpriseLoginURL = getConfig().LMS_BASE_URL + ENTERPRISE_LOGIN_URL; + const isThirdPartyAuthActive = isSocialAuthActive || (isEnterpriseLoginDisabled && isInstitutionAuthActive); return ( <> @@ -61,7 +62,7 @@ const ThirdPartyAuth = (props) => { )} - {thirdPartyAuthApiStatus === PENDING_STATE ? ( + {thirdPartyAuthApiStatus === PENDING_STATE && isThirdPartyAuthActive ? (