Skip to content

Commit

Permalink
Fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Apr 5, 2023
1 parent 810ecdd commit 40453a8
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,17 @@ export default function HeaderReportDropDown({
);

const iconMenu = () =>
report ? (
isEmpty(report) ? (
<span
role="button"
title={t('Schedule email report')}
tabIndex={0}
className="action-button action-schedule-report"
onClick={() => setShowModal(true)}
>
<Icons.Calendar />
</span>
) : (
<>
<NoAnimationDropdown
overlay={menu()}
Expand All @@ -291,16 +301,6 @@ export default function HeaderReportDropDown({
</span>
</NoAnimationDropdown>
</>
) : (
<span
role="button"
title={t('Schedule email report')}
tabIndex={0}
className="action-button action-schedule-report"
onClick={() => setShowModal(true)}
>
<Icons.Calendar />
</span>
);

return (
Expand Down

0 comments on commit 40453a8

Please sign in to comment.