Skip to content
Snippets Groups Projects
Commit 7abae621 authored by Serhiy Shkolyarenko's avatar Serhiy Shkolyarenko
Browse files

MAGETWO-39133: Wrong Tax displaying in Summary Block

used total segments to fetch proper value
parent 562435a0
Branches
No related merge requests found
......@@ -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);
},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment