diff --git a/apps/client/src/pages/ems-fd/index.tsx b/apps/client/src/pages/ems-fd/index.tsx index dca7b7613..3f6ff0086 100644 --- a/apps/client/src/pages/ems-fd/index.tsx +++ b/apps/client/src/pages/ems-fd/index.tsx @@ -23,6 +23,7 @@ import { useTones } from "hooks/global/use-tones"; import { useLoadValuesClientSide } from "hooks/useLoadValuesClientSide"; import type { Get911CallsData, + GetActiveOfficersData, GetEmsFdActiveDeputies, GetEmsFdActiveDeputy, } from "@snailycad/types/api"; @@ -35,6 +36,7 @@ import { ModalIds } from "types/modal-ids"; interface Props { activeDeputy: GetEmsFdActiveDeputy | null; activeDeputies: GetEmsFdActiveDeputies; + activeOfficers: GetActiveOfficersData; calls: Get911CallsData; } @@ -73,7 +75,12 @@ const DepartmentInfoModal = dynamic(async () => { return (await import("components/leo/modals/department-info-modal")).DepartmentInformationModal; }); -export default function EmsFDDashboard({ activeDeputy, calls, activeDeputies }: Props) { +export default function EmsFDDashboard({ + activeDeputy, + calls, + activeOfficers, + activeDeputies, +}: Props) { useLoadValuesClientSide({ valueTypes: [ ValueType.BLOOD_GROUP, @@ -99,6 +106,7 @@ export default function EmsFDDashboard({ activeDeputy, calls, activeDeputies }: state.setActiveDeputy(activeDeputy); set911Calls(calls.calls); dispatchState.setActiveDeputies(activeDeputies); + dispatchState.setActiveOfficers(activeOfficers); // eslint-disable-next-line react-hooks/exhaustive-deps }, [activeDeputies, activeDeputy, calls]); @@ -130,7 +138,7 @@ export default function EmsFDDashboard({ activeDeputy, calls, activeDeputies }: