diff --git a/apps/client/src/pages/officer/bureau-of-firearms.tsx b/apps/client/src/pages/officer/bureau-of-firearms.tsx index b1b556177..04c18914b 100644 --- a/apps/client/src/pages/officer/bureau-of-firearms.tsx +++ b/apps/client/src/pages/officer/bureau-of-firearms.tsx @@ -37,13 +37,13 @@ export default function BureauOfFirearms({ data }: Props) { const tableState = useTableState({ pagination: asyncTable.pagination }); async function handleAcceptOrDecline(id: string, type: "ACCEPT" | "DECLINE") { - const { json } = await execute({ + const { json } = await execute({ path: `/leo/bureau-of-firearms/${id}`, method: "POST", data: { type }, }); - if (json) { + if (json?.id) { await invalidateQuery(); asyncTable.update(id, json); }