I need to remove subtext of shipping in checkout summary
here tried as below location
/app/design/frontend/Vendor/theme-web/Magento_Checkout/web/js/view/summary/shipping.js
here I returning blank but still ()
is appearing. how to remove this
define(
[
'jquery',
'Magento_Checkout/js/view/summary/abstract-total',
'Magento_Checkout/js/model/quote'
],
function ($, Component, quote) {
return Component.extend({
defaults: {
template: 'Magento_Checkout/summary/shipping'
},
quoteIsVirtual: quote.isVirtual(),
totals: quote.getTotals(),
getShippingMethodTitle: function() {
if (!this.isCalculated()) {
return '';
}
var shippingMethod = quote.shippingMethod();
return shippingMethod ? '' : ''; //HERE Returning Blank***
},
isCalculated: function() {
return this.totals() && this.isFullMode() && null != quote.shippingMethod();
},
getValue: function() {
if (!this.isCalculated()) {
return this.notCalculatedMessage;
}
var price = this.totals().shipping_amount;
return this.getFormattedPrice(price);
}
});
}
);
where am I doing wrong? Can I get help? Thank you in advance