This commit is contained in:
morpheus65535 2024-06-09 22:33:13 -04:00
parent d3301a210f
commit ee90d3f40f
2 changed files with 9 additions and 3 deletions

View file

@ -88,7 +88,13 @@ const ProfileEditForm: FunctionComponent<Props> = ({
form.values.items,
(v) => {
const suffix =
v.hi === "only" ? ":hi" : v.forced === "True" ? ":forced" : "";
v.hi === "only"
? ":hi"
: v.hi === "never"
? ":normal"
: v.forced === "True"
? ":forced"
: "";
return v.language + suffix;
},

View file

@ -196,8 +196,8 @@ const ItemBadge: FunctionComponent<ItemProps> = ({ cutoff, item }) => {
let result = item.language;
if (item.hi === "only") {
result += ":HI";
} else if (item.hi === "also") {
result += " | " + result + ":HI";
} else if (item.hi === "never") {
result += ":Normal";
} else if (item.forced === "True") {
result += ":Forced";
}