Skip to content

Commit

Permalink
fix addErrors and remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 20, 2019
1 parent e8e0d0d commit 11aa1b8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/config/configBus.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ export const createConfigBus = () => {
* @param {Array} errors - Errors to add.
*/
addErrors(errors) {
console.log(errors);
if (!errors.length) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/data/request/fetchFromEndpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function fetchFromEndpoint(endpoint, options = {}) {
response = await client[endpoint][options.method](options.params);
} catch (e) {
if (e.errors.length) {
configBus.addErrors(endpoint, e.errors);
configBus.addErrors(e.errors);
configBus.$emit(ERROR, { [endpoint]: e.errors });
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/data/request/getDefaultRequestParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ export const getDefaultRequestParameters = () => {
return;
}

if (configBus.currentCarrier === 'dpd') {
delete addressValues.postal_code;
}
parameters[key] = addressValues[key];
}
});
Expand Down

0 comments on commit 11aa1b8

Please sign in to comment.