Skip to content

Commit

Permalink
Merge pull request #32 from Coosos/use-notify-always-set-shipping-add…
Browse files Browse the repository at this point in the history
…ress

Use notify always instead of call setShippingAddress after setting data
  • Loading branch information
Fanny DECLERCK authored Aug 28, 2020
2 parents ea6842f + 25a9d77 commit 66d8b90
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 66d8b90

Please sign in to comment.