From 64aa0d73473b09df83d8ec92cb2f3dc87de75713 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Sat, 13 Feb 2021 15:33:29 +0200 Subject: [PATCH 1/2] fix: customer. --- client/src/containers/Customers/CustomerForm/CustomerForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/containers/Customers/CustomerForm/CustomerForm.js b/client/src/containers/Customers/CustomerForm/CustomerForm.js index 9f8c4231f..4705491ac 100644 --- a/client/src/containers/Customers/CustomerForm/CustomerForm.js +++ b/client/src/containers/Customers/CustomerForm/CustomerForm.js @@ -126,7 +126,7 @@ function CustomerForm({ }; if (customer && customer.id) { - editCustomerMutate(customer.id, formValues) + editCustomerMutate([customer.id, formValues]) .then(onSuccess) .catch(onError); } else { From b356d8d6872f736cf8bee84f76debc29cdc46c82 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Sun, 14 Feb 2021 16:56:06 +0200 Subject: [PATCH 2/2] bills close delete alert --- client/src/containers/Alerts/Bills/BillDeleteAlert.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); }); };