diff --git a/client/src/containers/Alerts/Bills/BillDeleteAlert.js b/client/src/containers/Alerts/Bills/BillDeleteAlert.js index 05c0076bf..5300c1c76 100644 --- a/client/src/containers/Alerts/Bills/BillDeleteAlert.js +++ b/client/src/containers/Alerts/Bills/BillDeleteAlert.js @@ -1,8 +1,5 @@ import React from 'react'; -import { - FormattedMessage as T, - useIntl, -} from 'react-intl'; +import { FormattedMessage as T, useIntl } from 'react-intl'; import { Intent, Alert } from '@blueprintjs/core'; import { AppToaster } from 'components'; @@ -42,6 +39,7 @@ function BillDeleteAlert({ }), intent: Intent.SUCCESS, }); + closeAlert(name); }); }; diff --git a/client/src/containers/Customers/CustomerForm/CustomerForm.js b/client/src/containers/Customers/CustomerForm/CustomerForm.js index 57ba06c4e..44255c755 100644 --- a/client/src/containers/Customers/CustomerForm/CustomerForm.js +++ b/client/src/containers/Customers/CustomerForm/CustomerForm.js @@ -116,7 +116,7 @@ function CustomerForm({ }; if (customer && customer.id) { - editCustomerMutate(customer.id, formValues) + editCustomerMutate([customer.id, formValues]) .then(onSuccess) .catch(onError); } else {