diff --git a/src/config/configBus.js b/src/config/configBus.js index 36e20410..d1bf4898 100644 --- a/src/config/configBus.js +++ b/src/config/configBus.js @@ -309,7 +309,6 @@ export const createConfigBus = () => { * @param {Array} errors - Errors to add. */ addErrors(errors) { - console.log(errors); if (!errors.length) { return; } diff --git a/src/data/request/fetchFromEndpoint.js b/src/data/request/fetchFromEndpoint.js index 0031a24a..5614972a 100644 --- a/src/data/request/fetchFromEndpoint.js +++ b/src/data/request/fetchFromEndpoint.js @@ -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 }); } } diff --git a/src/data/request/getDefaultRequestParameters.js b/src/data/request/getDefaultRequestParameters.js index 59c8e6ad..160fbd2d 100644 --- a/src/data/request/getDefaultRequestParameters.js +++ b/src/data/request/getDefaultRequestParameters.js @@ -42,9 +42,6 @@ export const getDefaultRequestParameters = () => { return; } - if (configBus.currentCarrier === 'dpd') { - delete addressValues.postal_code; - } parameters[key] = addressValues[key]; } });