Improve cutoff options label

This commit is contained in:
Anderson Oki 2024-04-25 11:02:23 +09:00
parent 0bdfcd0eda
commit e473d3554e
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@ const ProfileEditForm: FunctionComponent<Props> = ({
const itemCutoffOptions = useSelectorOptions(
form.values.items,
(v) => v.language,
(v) => {
const suffix = v.hi === "True" ? ':hi' : v.forced === "True" ? ':forced': '';
return v.language + suffix;
},
(v) => String(v.id),
);