diff --git a/resources/js/components/Product/AddToCart.vue b/resources/js/components/Product/AddToCart.vue index e8f6e7fc..9534d40c 100644 --- a/resources/js/components/Product/AddToCart.vue +++ b/resources/js/components/Product/AddToCart.vue @@ -258,7 +258,7 @@ export default { }, computed: { - currentThumbnail: function() { + currentThumbnail: function () { return this.simpleProduct?.thumbnail || this.simpleProduct?.images?.[0] || this.product?.thumbnail },