Skip to content

Commit

Permalink
Fix failing JS unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslange committed Mar 12, 2024
1 parent 56f2e1f commit 28c20ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Expand Up @@ -85,7 +85,7 @@ const TotalsFooterItem = ( {

const priceComponent = (
<FormattedMonetaryAmount
className="wc-block-components-totals-footer-item-tax-value"
className="wc-block-components-totals-item__value"
currency={ currency }
value={ parseInt( totalPrice, 10 ) }
/>
Expand Down
Expand Up @@ -26,11 +26,7 @@ const TotalsItemValue = ( {
currency,
}: Partial< TotalsItemProps > ): ReactElement | null => {
if ( isValidElement( value ) ) {
return (
<div className="wc-block-components-totals-item__value">
{ value }
</div>
);
return <>{ value }</>;
}

return Number.isFinite( value ) ? (
Expand Down

0 comments on commit 28c20ef

Please sign in to comment.