fixed computing payment form's submit action
This commit is contained in:
@@ -81,6 +81,9 @@ export default function ComputePaymentForm({ mutate, onClose, rowData }) {
|
|||||||
try {
|
try {
|
||||||
request(`${PRIVACY_ADMIN_ACTION_API}/computing_payment/${rowData.id}`, "post", {
|
request(`${PRIVACY_ADMIN_ACTION_API}/computing_payment/${rowData.id}`, "post", {
|
||||||
data,
|
data,
|
||||||
|
}).then(() => {
|
||||||
|
onClose();
|
||||||
|
mutate();
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error submitting payment:", error);
|
console.error("Error submitting payment:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user