woocommerce/woocommerce-blocks#11053 added fee id (https://github.com/woocommerce/woocommerce-blocks/pull/11054)
This commit is contained in:
parent
a0e246eb52
commit
76752dfedb
|
@ -37,7 +37,7 @@ const TotalsFees = ( {
|
|||
}: TotalsFeesProps ): ReactElement | null => {
|
||||
return (
|
||||
<>
|
||||
{ cartFees.map( ( { id, name, totals }, index ) => {
|
||||
{ cartFees.map( ( { id, key, name, totals }, index ) => {
|
||||
const feesValue = parseInt( totals.total, 10 );
|
||||
|
||||
if ( ! feesValue ) {
|
||||
|
@ -51,6 +51,7 @@ const TotalsFees = ( {
|
|||
key={ id || `${ index }-${ name }` }
|
||||
className={ classnames(
|
||||
'wc-block-components-totals-fees',
|
||||
'wc-block-components-totals-fees__' + key,
|
||||
className
|
||||
) }
|
||||
currency={ currency }
|
||||
|
|
Loading…
Reference in New Issue