Skip to content

Commit

Permalink
fix: anchorEl warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alimtunc committed Aug 9, 2023
1 parent 0b34aa3 commit b2a8858
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default function HistoryButton({
});
}

const menu = (
const menu = anchorEl ? (
<Menu
autoFocus
anchorEl={anchorEl}
Expand Down Expand Up @@ -228,7 +228,7 @@ export default function HistoryButton({
>
{menuEls}
</Menu>
);
) : null;

return (
<div>
Expand Down

0 comments on commit b2a8858

Please sign in to comment.