From c253be541f2e570e9d0e1c90a8412d1f342513f3 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Sat, 28 Oct 2023 23:39:11 +0530 Subject: [PATCH] call `updateOrganizationType` window function --- apps/console/src/features/authentication/hooks/use-sign-in.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/console/src/features/authentication/hooks/use-sign-in.ts b/apps/console/src/features/authentication/hooks/use-sign-in.ts index 2c479965ff7..02823dcdb39 100644 --- a/apps/console/src/features/authentication/hooks/use-sign-in.ts +++ b/apps/console/src/features/authentication/hooks/use-sign-in.ts @@ -146,6 +146,9 @@ const useSignIn = (): UseSignInInterface => { orgType = OrganizationType.TENANT; } + // TODO: Remove this once the hasRequiredScopes() function is moved as a hook. + window["AppUtils"].updateOrganizationType(orgType); + dispatch(setOrganizationType(orgType)); dispatch(setUserOrganizationId(userOrganizationId));