Skip to content

Commit

Permalink
Fix ambient menu bottoming out on Cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
tiliv committed May 16, 2024
1 parent 64ad646 commit aae7b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DisplayMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function DisplayMenu({
setMenus((menus) => {
if (menus[0].autoStart || menus.length === 1) {
window.dispatchEvent(new CustomEvent('interaction', { detail: null }));
return [];
return menus;
} else if (menus.length > 1) {
const newMenus = menus.slice(0, -1);
setSelected(newMenus[newMenus.length - 1].selected);
Expand Down

0 comments on commit aae7b1a

Please sign in to comment.