mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
BIG-17: fix delete button in customer & vendor.
This commit is contained in:
@@ -60,7 +60,7 @@ function CustomerDetailsActionsBar({
|
||||
};
|
||||
|
||||
const handleDeleteCustomer = () => {
|
||||
openAlert(`'customer-delete`, { customerId });
|
||||
openAlert(`customer-delete`, { contactId: customerId });
|
||||
closeDrawer('customer-details-drawer');
|
||||
};
|
||||
const handleEditContact = () => {
|
||||
|
||||
@@ -45,7 +45,7 @@ function VendorDetailsActionsBar({
|
||||
|
||||
// Handle delete vendor.
|
||||
const onDeleteContact = () => {
|
||||
openAlert(`'vendor-delete`, { vendorId });
|
||||
openAlert(`vendor-delete`, { contactId: vendorId });
|
||||
closeDrawer('vendor-details-drawer');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user