WIP Toasts localizations.

This commit is contained in:
Ahmed Bouhuolia
2020-05-11 07:26:37 +02:00
parent 464c36d532
commit 9168a1b069
20 changed files with 301 additions and 174 deletions

View File

@@ -177,7 +177,7 @@ export const editAccount = ({ id, form }) => {
});
};
export const activeAccount = ({ id }) => {
export const activateAccount = ({ id }) => {
return dispatch => ApiService.post(`accounts/${id}/active`);
};
@@ -205,7 +205,11 @@ export const deleteBulkAccounts = ({ ids }) => {
});
resolve(response);
}).catch((error) => {
reject(error.response.data.errors || []);
const { response } = error;
const { data } = response;
const { errors } = data;
reject(errors);
});
});
};