diff --git a/tgui/packages/tgui/interfaces/PreferencesMenu/QuirksPage.tsx b/tgui/packages/tgui/interfaces/PreferencesMenu/QuirksPage.tsx index d7dbf8f13d6..1474149a864 100644 --- a/tgui/packages/tgui/interfaces/PreferencesMenu/QuirksPage.tsx +++ b/tgui/packages/tgui/interfaces/PreferencesMenu/QuirksPage.tsx @@ -8,10 +8,10 @@ import { getRandomization, PreferenceList } from './MainPage'; import { ServerPreferencesFetcher } from './ServerPreferencesFetcher'; import { useRandomToggleState } from './useRandomToggleState'; -function getValueClass(value: number) { - if (value > 0) { +function getColorValueClass(quirk: Quirk) { + if (quirk.value > 0) { return 'positive'; - } else if (value < 0) { + } else if (quirk.value < 0) { return 'negative'; } else { return 'neutral'; @@ -131,7 +131,7 @@ function QuirkDisplay(props: QuirkDisplayProps) { >