refactoring: sales tables.

refacoring: purchases tables.
This commit is contained in:
a.bouhuolia
2021-02-11 20:45:06 +02:00
parent 3901c336df
commit d48532a7e6
210 changed files with 2799 additions and 5392 deletions

View File

@@ -13,7 +13,6 @@ import withAlertStoreConnect from 'containers/Alert/withAlertStoreConnect';
import withAlertActions from 'containers/Alert/withAlertActions';
import { useDeleteAccount } from 'hooks/query';
import { compose } from 'utils';
/**
@@ -48,12 +47,7 @@ function AccountDeleteAlert({
});
closeAlert(name);
})
.catch((error) => {
const {
response: {
data: { errors },
},
} = error;
.catch(({ response: { data: { errors } } }) => {
handleDeleteErrors(errors);
closeAlert(name);
});