From cf2261c542dbaecfad9c411225e125f5abdb98fe Mon Sep 17 00:00:00 2001 From: paulrpg Date: Tue, 14 Nov 2023 20:08:01 +0000 Subject: [PATCH] resolve linting error --- tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx b/tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx index 87a468e3fdec..9fe92836e4e1 100644 --- a/tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx +++ b/tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx @@ -6,9 +6,9 @@ import { range } from 'common/collections'; import { DropshipEquipment, DropshipProps } from '../DropshipWeaponsConsole'; import { fmEditState, fmState, fmWeaponEditState, mfdState } from './stateManagers'; -function sortWeapons(a: DropshipEquipment, b: DropshipEquipment): number { +const sortWeapons = (a: DropshipEquipment, b: DropshipEquipment) => { return (a?.mount_point ?? 0) < (b?.mount_point ?? 0) ? -1 : 1; -} +}; const CreateFiremissionPanel = (props, context) => { const { act } = useBackend(context);