diff --git a/packages/apps/esm-help-menu-app/src/help-menu/help.component.tsx b/packages/apps/esm-help-menu-app/src/help-menu/help.component.tsx index 1fc153f89..6628ea3e3 100644 --- a/packages/apps/esm-help-menu-app/src/help-menu/help.component.tsx +++ b/packages/apps/esm-help-menu-app/src/help-menu/help.component.tsx @@ -1,10 +1,12 @@ import React, { useState, useEffect, useRef } from 'react'; import classNames from 'classnames'; import { Help } from '@carbon/react/icons'; +import { useSession } from '@openmrs/esm-framework' import HelpMenuPopup from './help-popup.component'; import styles from './help.styles.scss'; export default function HelpMenu() { + const { user } = useSession(); const [helpMenuOpen, setHelpMenuOpen] = useState(false); const helpMenuButtonRef = useRef(null); const popupRef = useRef(null); @@ -35,15 +37,17 @@ export default function HelpMenu() { return ( <> - + {user && ( + + )} {helpMenuOpen && (
{t('poweredBy', 'Powered by')}
+