diff --git a/app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary/grand-total.js b/app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary/grand-total.js index 275a357771e9059ba7ebe01e1b7d02b96ecc822c..2ad991e704ed63d83dd1d3c91bd9e8a69dc63e7c 100644 --- a/app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary/grand-total.js +++ b/app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary/grand-total.js @@ -8,9 +8,10 @@ define( [ 'Magento_Checkout/js/view/summary/abstract-total', 'Magento_Checkout/js/model/quote', - 'Magento_Catalog/js/price-utils' + 'Magento_Catalog/js/price-utils', + 'Magento_Checkout/js/model/totals' ], - function (Component, quote, priceUtils) { + function (Component, quote, priceUtils, totals) { "use strict"; return Component.extend({ defaults: { @@ -25,7 +26,7 @@ define( getValue: function() { var price = 0; if (this.totals()) { - price = this.totals().grand_total; + price = totals.getSegment('grand_total').value; } return this.getFormattedPrice(price); },