Skip to content

Commit 56168ff

Browse files
Fix flags check (#1652)
<!-- Ensure the title clearly reflects what was changed. Provide a clear and concise description of the changes made. The PR should only contain the changes related to the issue, and no other unrelated changes. --> Fixes OPS-2947
1 parent 9f025aa commit 56168ff

File tree

1 file changed

+2
-2
lines changed
  • packages/react-ui/src/app/common/auth/lib

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FlagsMap } from '@/app/lib/flags-api';
22

3-
export const getFederatedUrlBasedOnFlags = (flags: FlagsMap) =>
4-
flags.FEDERATED_LOGIN_ENABLED
3+
export const getFederatedUrlBasedOnFlags = (flags?: FlagsMap) =>
4+
flags?.FEDERATED_LOGIN_ENABLED
55
? (flags.FRONTEGG_URL as string | undefined)
66
: undefined;

0 commit comments

Comments
 (0)