define([ 'uiComponent', 'Magento_Customer/js/customer-data' ], function (Component, customerData) { 'use strict'; return Component.extend({ defaults: { urlLogoDefault: null }, /** @inheritdoc */ initialize: function () { this._super(); this.customsection = customerData.get('customsection'); }, isEnabled: function () { return this.customsection().enabled; }, logoCompany: function () { if(!this.isEnabled() || this.isEnabled() == 0) { this.customsection().url_logo = this.urlLogoDefault; }else { if (this.customsection().url_logo === true) { this.customsection().url_logo = this.urlLogoDefault; } } return this.customsection().url_logo; } }); });