Skip to content

Commit

Permalink
use customerData promise
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Jan 7, 2021
1 parent 6f90328 commit 9041c08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions view/frontend/web/js/view/country-store-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ define([
return Component.extend({
initialize: function () {
this._super();
var _self = this;

customerData.getInitCustomerData().done(function () { _self.initCountryStoreData(); });
},

initCountryStoreData: function () {
this.countryStoreData = customerData.get('country_store_data');

if (!this.isRefreshPending() && this.isInvalidated()) {
Expand Down

0 comments on commit 9041c08

Please sign in to comment.