From 98f783ee4401c988a91cb2171bb929df916aa273 Mon Sep 17 00:00:00 2001 From: baslani Date: Wed, 26 Nov 2025 09:04:14 +0330 Subject: [PATCH] fixed computing payment form's submit action --- .../privacy-office/RowActions/Forms/ComputePaymentForm.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/ComputePaymentForm.jsx b/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/ComputePaymentForm.jsx index 01d3a5d..eb0fa47 100644 --- a/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/ComputePaymentForm.jsx +++ b/src/components/dashboard/inquiryPrivacy/privacy-office/RowActions/Forms/ComputePaymentForm.jsx @@ -81,6 +81,9 @@ export default function ComputePaymentForm({ mutate, onClose, rowData }) { try { request(`${PRIVACY_ADMIN_ACTION_API}/computing_payment/${rowData.id}`, "post", { data, + }).then(() => { + onClose(); + mutate(); }); } catch (error) { console.error("Error submitting payment:", error);