Skip to content

Commit

Permalink
WG407 Add FeatureFlags context - updated2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinaGoaga committed Feb 23, 2022
1 parent 12b526c commit ed6a0aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const LOG_OUT = "/oauth2/logout";
const AUTH_PATH_SIGNIN = "/sign_in";

export const AuthCheck = ({ children }) => {
// If the auth flag is null go straight to rendering the children
const { authFlag } = React.useContext(FeatureFlags);

if (!authFlag) {
Expand Down

0 comments on commit ed6a0aa

Please sign in to comment.