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

Commit fe13ac0

Browse files
authored
Merge pull request #2091 from OpenBazaar/brian.fixCheckoutBreakdownBug
Change to v5 order amount
2 parents e02ac53 + ee05d89 commit fe13ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/order.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ func (n *OpenBazaarNode) CheckoutBreakdown(data *repo.PurchaseData) (repo.Checko
928928
}
929929

930930
// Coupon Codes Discount
931-
listingCurDef, err := n.LookupCurrency(contract.VendorListings[0].Item.PriceCurrency.Code)
931+
listingCurDef, err := n.LookupCurrency(v5Order.Payment.AmountCurrency.Code)
932932
if err != nil {
933933
return emptyCheckoutBreakdown, err
934934
}

0 commit comments

Comments
 (0)