Skip to content

Commit

Permalink
chore: trim name shipping method
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Jan 18, 2024
1 parent ec26d0e commit d6531ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/routes/ecom/modules/calculate-shipping.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ exports.post = ({ appSdk }, req, res) => {
shippingResult.forEach(shipping => {
let { shipmentCompany, deadline, value } = shipping
shipmentCompany = shipmentCompany.replace(/\([^)]*\)/g, '')
shipmentCompany = shipmentCompany.trim()
// check if service is not disabled
let isAvailable = true
if (Array.isArray(appData.unavailable_for) && appData.unavailable_for.length) {
Expand Down

0 comments on commit d6531ec

Please sign in to comment.