File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
app/code/Magento/Checkout/view/frontend/web/js/model/cart Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,12 @@ define([
19
19
quote . shippingAddress . subscribe ( function ( ) {
20
20
var type = quote . shippingAddress ( ) . getType ( ) ;
21
21
22
- if ( quote . isVirtual ( ) || quote . shippingAddress ( ) . isEditable ( ) ) {
23
- // update totals block when estimated address was set
24
- totalsProcessors [ 'default' ] = totalsDefaultProvider ;
25
- totalsProcessors [ type ] ?
26
- totalsProcessors [ type ] . estimateTotals ( quote . shippingAddress ( ) ) :
27
- totalsProcessors [ 'default' ] . estimateTotals ( quote . shippingAddress ( ) ) ;
28
- } else {
22
+ totalsProcessors [ 'default' ] = totalsDefaultProvider ;
23
+ totalsProcessors [ type ] ?
24
+ totalsProcessors [ type ] . estimateTotals ( quote . shippingAddress ( ) ) :
25
+ totalsProcessors [ 'default' ] . estimateTotals ( quote . shippingAddress ( ) ) ;
26
+
27
+ if ( ! quote . isVirtual ( ) ) {
29
28
// check if user data not changed -> load rates from cache
30
29
if ( ! cartCache . isChanged ( 'address' , quote . shippingAddress ( ) ) &&
31
30
! cartCache . isChanged ( 'cartVersion' , customerData . get ( 'cart' ) ( ) [ 'data_id' ] ) &&
You can’t perform that action at this time.
0 commit comments