Skip to content

Commit

Permalink
fix: ENABLED_ORG_LOGO definition
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoa committed Jul 1, 2024
1 parent 736a5c7 commit a8789fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ensureConfig([
subscribe(APP_CONFIG_INITIALIZED, () => {
mergeConfig({
AUTHN_MINIMAL_HEADER: !!process.env.AUTHN_MINIMAL_HEADER,
ENABLED_ORG_LOGO: !!process.env.ENABLED_ORG_LOGO,
}, 'Header additional config');
});

Expand Down
5 changes: 1 addition & 4 deletions src/learning-header/LearningHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@ LinkedLogo.propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string.isRequired,
};

// this feature flag is not included on the frontend-platform, we have to get it directly from ENV
const enabledOrgLogo = process.env.ENABLED_ORG_LOGO || false;

const LearningHeader = ({
courseOrg, courseTitle, intl, showUserDropdown,
}) => {
const { authenticatedUser } = useContext(AppContext);
const [logoOrg, setLogoOrg] = useState(null);
const enabledOrgLogo = getConfig().ENABLED_ORG_LOGO || false;

useEffect(() => {
if (courseOrg) {
Expand Down

0 comments on commit a8789fe

Please sign in to comment.