From fd2065b9a622c5d10c5d82e9f4642e35964bf4f5 Mon Sep 17 00:00:00 2001 From: Woosignal <40471622+woosignal@users.noreply.github.com> Date: Tue, 3 Mar 2020 22:37:21 +0000 Subject: [PATCH] Tweak to CartLineItem payload --- LabelStoreMax/lib/pages/product_detail.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LabelStoreMax/lib/pages/product_detail.dart b/LabelStoreMax/lib/pages/product_detail.dart index a0361e6..2350940 100644 --- a/LabelStoreMax/lib/pages/product_detail.dart +++ b/LabelStoreMax/lib/pages/product_detail.dart @@ -390,7 +390,7 @@ class _ProductDetailState extends State { 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") {