Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
#11053 added fee id
Browse files Browse the repository at this point in the history
  • Loading branch information
larsenlarsson authored and nielslange committed Sep 29, 2023
1 parent e8225f5 commit 19fb44b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/checkout/components/totals/fees/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand All @@ -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 }
Expand Down

0 comments on commit 19fb44b

Please sign in to comment.