From 8faac5a56f3b383f3e7acc871d3541321902a258 Mon Sep 17 00:00:00 2001 From: Yetity Date: Sun, 31 Dec 2023 09:08:26 +0200 Subject: [PATCH] me am stupid --- BP/manifest.json | 2 +- BP/scripts/util.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BP/manifest.json b/BP/manifest.json index 05e291d..6aa4a80 100644 --- a/BP/manifest.json +++ b/BP/manifest.json @@ -25,7 +25,7 @@ "version": [ 0, 2, - 7 + 8 ] }, "modules": [ diff --git a/BP/scripts/util.ts b/BP/scripts/util.ts index 6cb0003..0648703 100644 --- a/BP/scripts/util.ts +++ b/BP/scripts/util.ts @@ -23,10 +23,10 @@ ObjectiveSortOrder.Descending */ export const input = { - fixDisplay(input: string): DisplaySlotId | false { + fixDisplay(input: string): DisplaySlotId | undefined { let allowed = ["belowname", "belowName", "BelowName", "list", "List", "sidebar", "Sidebar", "sideBar", "SideBar"] - if (!allowed.includes(input)) return false + if (!allowed.includes(input)) return undefined switch (input) { case "belowname": @@ -43,10 +43,10 @@ export const input = { return DisplaySlotId.Sidebar } }, - fixSortOrder(input: string): ObjectiveSortOrder | false { + fixSortOrder(input: string): ObjectiveSortOrder | undefined { let allowed = ["asc", "des", "ascending", "descending", "desc", "Ascending", "Descending"] - if (!allowed.includes(input)) return false + if (!allowed.includes(input)) return undefined switch (input) { case "asc":