Skip to content

Commit

Permalink
QA fix: line methods input mappers for quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpprieto committed Jan 7, 2025
1 parent f143d91 commit fd15450
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/input-map-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class InputMapper {
line.attributes = lineItem.customAttributes;
}

if (lineItem.quantity) {
if (typeof lineItem.quantity !== 'undefined') {
line.quantity = lineItem.quantity;
}

Expand Down Expand Up @@ -143,7 +143,7 @@ export default class InputMapper {
lines: lineItems.map((lineItem) => {
const line = {};

if (lineItem.quantity) {
if (typeof lineItem.quantity !== 'undefined') {
line.quantity = lineItem.quantity;
}

Expand All @@ -170,7 +170,7 @@ export default class InputMapper {

const line = {id: lineItem.id};

if (lineItem.quantity) {
if (typeof lineItem.quantity !== 'undefined') {
line.quantity = lineItem.quantity;
}

Expand Down

0 comments on commit fd15450

Please sign in to comment.