From 22f774287b281eab92a8c2091c8ae7bed5951c99 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Mon, 22 Apr 2024 09:50:46 +0300 Subject: [PATCH] [MIRROR] Fixes dropdown displaytext not working for numeric values (#2112) (#3010) * Fixes dropdown displaytext not working for numeric values * Update dropdowns.tsx --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> --- .../preferences/features/dropdowns.tsx | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/dropdowns.tsx b/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/dropdowns.tsx index da07b620ddf..32e1161e636 100644 --- a/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/dropdowns.tsx +++ b/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/dropdowns.tsx @@ -43,18 +43,17 @@ export function FeatureDropdownInput(props: DropdownInputProps) { }; }); + let display_text = value; + if (display_names) { + display_text = display_names[value]; + } + return (