Skip to content

Commit

Permalink
Remove unnecessary else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan committed Jun 11, 2024
1 parent 77b558c commit 3f3ba24
Showing 1 changed file with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -924,32 +924,32 @@ export const SignOnMethodsCore: FunctionComponent<SignOnMethodsCorePropsInterfac
data-componentid={ `${componentId}-landing` }
/>
);
} else {
return (
<SignInMethodCustomization
appId={ appId }
applicationName={ application?.name }
isApplicationShared={ isApplicationShared }
authenticators={ authenticators }
clientId={ clientId }
authenticationSequence={ moderatedAuthenticationSequence }
onIDPCreateWizardTrigger={ (type: string, cb: () => 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 (
<SignInMethodCustomization
appId={ appId }
applicationName={ application?.name }
isApplicationShared={ isApplicationShared }
authenticators={ authenticators }
clientId={ clientId }
authenticationSequence={ moderatedAuthenticationSequence }
onIDPCreateWizardTrigger={ (type: string, cb: () => 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 (
Expand Down

0 comments on commit 3f3ba24

Please sign in to comment.