Skip to content

Commit

Permalink
fix(components/shipping-calculator): minor fixes for disabled service…
Browse files Browse the repository at this point in the history
… auto select
  • Loading branch information
leomp12 committed Aug 21, 2024
1 parent 8a00c11 commit 311f41b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
leave-active-class="animated fadeOutDown"
>
<div
v-if="canSelectServices && !canAutoSelectService && selectedService === null"
v-if="canSelectServices && !canAutoSelectService &&
selectedService === null && shippingServices.length"
class="shipping-calculator__label"
>
<i class="i-arrow-down animated wobble"></i>
Expand Down
2 changes: 1 addition & 1 deletion @ecomplus/storefront-components/src/js/CartQuickview.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default {
this.selectedShippingPrice = service.shipping_line
? service.shipping_line.total_price
: 0
},
}
},

created () {
Expand Down
2 changes: 2 additions & 0 deletions @ecomplus/storefront-components/src/js/ShippingCalculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ export default {
})
if (this.canAutoSelectService) {
this.setSelectedService(0)
} else {
this.selectedService = null
}
this.hasPaidOption = Boolean(this.shippingServices.find(service => {
return service.shipping_line.total_price || service.shipping_line.price
Expand Down

0 comments on commit 311f41b

Please sign in to comment.