Skip to content

Commit

Permalink
chore: check declare value before use
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Jul 25, 2024
1 parent c80cfe7 commit bf0e092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/lib/mandabem/create-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = ({ appSdk, storeId, auth }, {
data.largura = 11
data.comprimento = 16
}
if (shippingLine.declared_value) {
if (shippingLine.declared_value >= 26) {
data.valor_seguro = shippingLine.declared_value
}
data.cep_origem = shippingLine.from.zip.replace(/\D/g, '')
Expand Down

0 comments on commit bf0e092

Please sign in to comment.