diff --git a/src/pages/requests/Detail.tsx b/src/pages/requests/Detail.tsx index bf27bea..6bb3742 100644 --- a/src/pages/requests/Detail.tsx +++ b/src/pages/requests/Detail.tsx @@ -84,6 +84,14 @@ const RequestDetail: FC = () => { id, status: 'APPROVED', rejectReason: '' + }, { + onSuccess: () => { + toast.success(t('success')) + window.location.reload() + }, + onError: (error: ErrorType) => { + toast.error(error.response?.data?.error?.message[0]) + } }) } }