Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Sep 28, 2023
1 parent 9ca646e commit 2a93309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/client/src/pages/officer/bureau-of-firearms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<PostBOFData>({
const { json } = await execute<PostBOFData | null>({
path: `/leo/bureau-of-firearms/${id}`,
method: "POST",
data: { type },
});

if (json) {
if (json?.id) {
await invalidateQuery();
asyncTable.update(id, json);
}
Expand Down

0 comments on commit 2a93309

Please sign in to comment.