Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1339 from OpenBazaar/quantity-patch
Browse files Browse the repository at this point in the history
Quantity patch
  • Loading branch information
jjeffryes authored May 8, 2018
2 parents 81d0acd + 62a4e35 commit a1dfb7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/models/order/Order.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export default class extends BaseModel {
const listing = response.contract
.vendorListings[index];

// standardize the quantity field
item.quantity = item.quantity === 0 ?
item.quantity64 : item.quantity;

if (listing.metadata.contractType === 'CRYPTOCURRENCY') {
const coinDivisibility = listing.metadata
.coinDivisibility;
Expand Down

0 comments on commit a1dfb7b

Please sign in to comment.