BIG-17: fix delete button in customer & vendor.

This commit is contained in:
elforjani3
2021-09-11 17:03:08 +02:00
parent 65cdc328bb
commit 6fc914c1f3
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ function CustomerDetailsActionsBar({
}; };
const handleDeleteCustomer = () => { const handleDeleteCustomer = () => {
openAlert(`'customer-delete`, { customerId }); openAlert(`customer-delete`, { contactId: customerId });
closeDrawer('customer-details-drawer'); closeDrawer('customer-details-drawer');
}; };
const handleEditContact = () => { const handleEditContact = () => {

View File

@@ -45,7 +45,7 @@ function VendorDetailsActionsBar({
// Handle delete vendor. // Handle delete vendor.
const onDeleteContact = () => { const onDeleteContact = () => {
openAlert(`'vendor-delete`, { vendorId }); openAlert(`vendor-delete`, { contactId: vendorId });
closeDrawer('vendor-details-drawer'); closeDrawer('vendor-details-drawer');
}; };