From 039c2fa4996fb382b56f3db6cdd6308ac74cceca Mon Sep 17 00:00:00 2001 From: Oskar Damkjaer Date: Fri, 3 Nov 2023 14:14:12 +0100 Subject: [PATCH] hide SSO buttons when new visibility config is set to false --- src/browser/modules/Stream/Auth/ConnectForm.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/browser/modules/Stream/Auth/ConnectForm.tsx b/src/browser/modules/Stream/Auth/ConnectForm.tsx index 878f83c63b6..cdba3e796d3 100644 --- a/src/browser/modules/Stream/Auth/ConnectForm.tsx +++ b/src/browser/modules/Stream/Auth/ConnectForm.tsx @@ -372,7 +372,10 @@ export default function ConnectForm(props: ConnectFormProps): JSX.Element { {props.authenticationMethod === SSO && !SSOLoading && - SSOProviders.map((provider: SSOProvider) => ( + SSOProviders.filter(provider => { + // @ts-ignore types outdated + return 'visible' in provider ? provider.visible : true + }).map((provider: SSOProvider) => ( {