From 99f6dbaa3402b429259110722b91cd6230515750 Mon Sep 17 00:00:00 2001 From: tralwdwd <79791517+tralwdwd@users.noreply.github.com> Date: Thu, 11 Dec 2025 15:57:03 +0000 Subject: [PATCH] fix: settings item not showing and not being injected into the correct section --- plugins/MoreAlts/SidebarPatcher.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/plugins/MoreAlts/SidebarPatcher.js b/plugins/MoreAlts/SidebarPatcher.js index 0270623..83ae1f3 100644 --- a/plugins/MoreAlts/SidebarPatcher.js +++ b/plugins/MoreAlts/SidebarPatcher.js @@ -141,17 +141,15 @@ function patchTabsUI(tabs, patches) { const [config] = args; const sections = config.sections; - const section = sections?.find((x) => { - ["Bunny", "Kettu", "Revenge"].some( - mod => x.label === mod && x.title === mod - ) - }); + const section = sections?.find((x) => + ["Bunny", "Kettu", "Revenge"].includes(x?.label) + ); // If unable to find a section if(!section) { const isMainSettings = Boolean( sections?.find((x) => - x.settings[0] == "PREMIUM" + x.settings.includes("ACCOUNT") ) ) @@ -182,17 +180,15 @@ function patchTabsUI(tabs, patches) { i => i.props?.sections, ).props; - const section = sections?.find((x) => - ["Bunny", "Kettu", "Revenge"].some( - mod => x.label === mod && x.title === mod, - ) + const section = sections?.find((x) => + ["Bunny", "Kettu", "Revenge"].includes(x?.label) ); // If unable to find a section if(!section) { const isMainSettings = Boolean( sections?.find((x) => - x.settings[0] == "PREMIUM" + x.settings.includes("ACCOUNT") ) )