pull/2475/head
morpheus65535 6 months ago
parent d3301a210f
commit ee90d3f40f

@ -88,7 +88,13 @@ const ProfileEditForm: FunctionComponent<Props> = ({
form.values.items, form.values.items,
(v) => { (v) => {
const suffix = 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; return v.language + suffix;
}, },

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

Loading…
Cancel
Save