Tweak to CartLineItem payload

This commit is contained in:
Woosignal 2020-03-03 22:37:21 +00:00 committed by GitHub
parent 1af4f7bd67
commit fd2065b9a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,7 +390,7 @@ class _ProductDetailState extends State<ProductDetailPage> {
isManagedStock: _product.manageStock,
stockQuantity: _product.stockQuantity,
shippingIsTaxable: _product.shippingTaxable,
imageSrc: _product.images.first.src,
imageSrc: _product.images.length == 0 ? "" : _product.images.first.src,
total: _product.price);
if (_product.type != "simple") {