From 3f3ba24b12beda051ec8e5369a1bafc1af4faaf1 Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Tue, 11 Jun 2024 16:03:31 +0530 Subject: [PATCH] Remove unnecessary else clause --- .../components/sign-on-methods-core.tsx | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/features/admin.applications.v1/components/settings/sign-on-methods/components/sign-on-methods-core.tsx b/features/admin.applications.v1/components/settings/sign-on-methods/components/sign-on-methods-core.tsx index ead8bef6ff7..acc0083cb6a 100644 --- a/features/admin.applications.v1/components/settings/sign-on-methods/components/sign-on-methods-core.tsx +++ b/features/admin.applications.v1/components/settings/sign-on-methods/components/sign-on-methods-core.tsx @@ -924,32 +924,32 @@ export const SignOnMethodsCore: FunctionComponent ); - } else { - return ( - void, template: any) => { - setSelectedIDPTemplate(template); - setIDPCreateWizardTriggerOrigin("EXTERNAL"); - setIDPTemplateTypeToTrigger(type); - setShowMissingSocialAuthenticatorModal(false); - setShowIDPCreateWizard(true); - broadcastIDPCreateSuccessMessage = cb; - } } - onUpdate={ onUpdate } - onReset={ handleLoginFlowReset } - data-componentid={ componentId } - isLoading={ isAuthenticatorsFetchRequestLoading } - setIsLoading={ setIsAuthenticatorsFetchRequestLoading } - readOnly={ readOnly } - /> - ); } + + return ( + void, template: any) => { + setSelectedIDPTemplate(template); + setIDPCreateWizardTriggerOrigin("EXTERNAL"); + setIDPTemplateTypeToTrigger(type); + setShowMissingSocialAuthenticatorModal(false); + setShowIDPCreateWizard(true); + broadcastIDPCreateSuccessMessage = cb; + } } + onUpdate={ onUpdate } + onReset={ handleLoginFlowReset } + data-componentid={ componentId } + isLoading={ isAuthenticatorsFetchRequestLoading } + setIsLoading={ setIsAuthenticatorsFetchRequestLoading } + readOnly={ readOnly } + /> + ); }; return (