From 749946250e67e9e8b73b1f83aebafafa5c1278bf Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Fri, 19 Apr 2024 10:15:42 +0300 Subject: [PATCH] Fixes crew monitor (#2085) (#2974) fix crew monitor Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com> --- tgui/packages/tgui/interfaces/CrewConsoleSkyrat.jsx | 2 +- tgui/packages/tgui/interfaces/CrewConsoleSkyratBlueshield.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tgui/packages/tgui/interfaces/CrewConsoleSkyrat.jsx b/tgui/packages/tgui/interfaces/CrewConsoleSkyrat.jsx index 1685273c030..d8d74bf367f 100644 --- a/tgui/packages/tgui/interfaces/CrewConsoleSkyrat.jsx +++ b/tgui/packages/tgui/interfaces/CrewConsoleSkyrat.jsx @@ -88,7 +88,7 @@ export const CrewConsoleSkyrat = () => { const CrewTable = (props) => { const { act, data } = useBackend(); - const sensors = sortBy((s) => s.ijob)(data.sensors ?? []); + const sensors = sortBy(data.sensors ?? [], (s) => s.ijob); return ( diff --git a/tgui/packages/tgui/interfaces/CrewConsoleSkyratBlueshield.jsx b/tgui/packages/tgui/interfaces/CrewConsoleSkyratBlueshield.jsx index 34250c381f6..f831026e8ee 100644 --- a/tgui/packages/tgui/interfaces/CrewConsoleSkyratBlueshield.jsx +++ b/tgui/packages/tgui/interfaces/CrewConsoleSkyratBlueshield.jsx @@ -83,7 +83,7 @@ export const CrewConsoleSkyratBlueshield = () => { const CrewTable = (props) => { const { act, data } = useBackend(); - const sensors = sortBy((s) => s.ijob)(data.sensors ?? []); + const sensors = sortBy(data.sensors ?? [], (s) => s.ijob); return (