Skip to content

Commit

Permalink
Use notify always instead of call setShippingAddress after set data
Browse files Browse the repository at this point in the history
  • Loading branch information
Coosos committed Aug 27, 2020
1 parent ea6842f commit 25a9d77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions view/frontend/web/js/view/checkout/shipping/store-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ define([
}
});

this.currentRetailerId = ko.observable();
this.currentRetailerId = ko.observable().extend({notify: 'always'});
this.currentRetailerId.subscribe(this.setShippingAddress.bind(this));
},

Expand Down Expand Up @@ -116,7 +116,6 @@ define([
}
marker.on('click', function () {
this.currentRetailerId(markerData.id);
this.setShippingAddress();
}.bind(this));
markers.push(marker);
}.bind(this));
Expand Down

0 comments on commit 25a9d77

Please sign in to comment.