From 86b889d3b6a2c36a97f2dbf83a984311b53048ca Mon Sep 17 00:00:00 2001 From: Anderson Shindy Oki Date: Thu, 25 Apr 2024 11:34:42 +0900 Subject: Improved cutoff options label. #2466 --- frontend/src/components/forms/ProfileEditForm.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/forms/ProfileEditForm.tsx b/frontend/src/components/forms/ProfileEditForm.tsx index 874f5b8a6..eecacd73e 100644 --- a/frontend/src/components/forms/ProfileEditForm.tsx +++ b/frontend/src/components/forms/ProfileEditForm.tsx @@ -82,7 +82,12 @@ const ProfileEditForm: FunctionComponent = ({ 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), ); -- cgit v1.2.3