From aae7b1a1fbe330968a1b4274f4979c1df97019b4 Mon Sep 17 00:00:00 2001 From: Autumn Valenta Date: Thu, 16 May 2024 16:07:56 -0600 Subject: [PATCH] Fix ambient menu bottoming out on Cancel --- src/components/DisplayMenu.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DisplayMenu.jsx b/src/components/DisplayMenu.jsx index 519e05a..34bcfde 100644 --- a/src/components/DisplayMenu.jsx +++ b/src/components/DisplayMenu.jsx @@ -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);