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":