fix: settings item not showing and not being injected into the correct section

This commit is contained in:
tralwdwd 2025-12-11 15:57:03 +00:00
parent 0de40220a1
commit 99f6dbaa34

View file

@ -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")
)
)
@ -183,16 +181,14 @@ function patchTabsUI(tabs, patches) {
).props;
const section = sections?.find((x) =>
["Bunny", "Kettu", "Revenge"].some(
mod => x.label === mod && x.title === mod,
)
["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")
)
)