add defaults for cart data totals object (https://github.com/woocommerce/woocommerce-blocks/pull/1896)
This commit is contained in:
parent
5475985912
commit
02b3f2fccc
|
@ -51,7 +51,26 @@ const reducer = (
|
||||||
itemsCount: 0,
|
itemsCount: 0,
|
||||||
itemsWeight: 0,
|
itemsWeight: 0,
|
||||||
needsShipping: true,
|
needsShipping: true,
|
||||||
totals: {},
|
totals: {
|
||||||
|
currency_code: '',
|
||||||
|
currency_symbol: '',
|
||||||
|
currency_minor_unit: 2,
|
||||||
|
currency_decimal_separator: '.',
|
||||||
|
currency_thousand_separator: ',',
|
||||||
|
currency_prefix: '',
|
||||||
|
currency_suffix: '',
|
||||||
|
total_items: 0,
|
||||||
|
total_items_tax: 0,
|
||||||
|
total_fees: 0,
|
||||||
|
total_fees_tax: 0,
|
||||||
|
total_discount: 0,
|
||||||
|
total_discount_tax: 0,
|
||||||
|
total_shipping: 0,
|
||||||
|
total_shipping_tax: 0,
|
||||||
|
total_price: 0,
|
||||||
|
total_tax: 0,
|
||||||
|
tax_lines: [],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
metaData: {},
|
metaData: {},
|
||||||
errors: [],
|
errors: [],
|
||||||
|
|
Loading…
Reference in New Issue