Skip to content

Commit

Permalink
me am stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
YetNT committed Dec 31, 2023
1 parent 90c119f commit 8faac5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BP/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"version": [
0,
2,
7
8
]
},
"modules": [
Expand Down
8 changes: 4 additions & 4 deletions BP/scripts/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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":
Expand Down

0 comments on commit 8faac5a

Please sign in to comment.