diff --git a/frontend/benefit/handler/src/components/batchProcessing/BatchActionsInspectionForm.tsx b/frontend/benefit/handler/src/components/batchProcessing/BatchActionsInspectionForm.tsx index cc4573e24c..08da311ffe 100644 --- a/frontend/benefit/handler/src/components/batchProcessing/BatchActionsInspectionForm.tsx +++ b/frontend/benefit/handler/src/components/batchProcessing/BatchActionsInspectionForm.tsx @@ -51,7 +51,7 @@ BatchProps) => { setBatchCloseAnimation ); - const { mutate: changeBatchStatus } = useBatchStatus(); + const { mutate: changeBatchStatus } = useBatchStatus(setBatchCloseAnimation); const [isModalBatchToDraft, setModalBatchToDraft] = React.useState(false); const [isModalBatchToCompletion, setModalBatchToCompletion] = React.useState(false); @@ -76,7 +76,10 @@ BatchProps) => { }; const handleBatchStatusChange = (): void => { - changeBatchStatus({ id, status: BATCH_STATUSES.DRAFT }); + changeBatchStatus({ + id, + status: BATCH_STATUSES.DRAFT, + }); setModalBatchToDraft(false); };