Use formatCurrency in the orders activity list

This commit is contained in:
Kelly Dwan 2018-06-20 13:44:13 -04:00 committed by Timmy Crawford
parent 17cbf3a3ad
commit ff80ca0122
1 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import PropTypes from 'prop-types';
* Internal dependencies
*/
import ActivityCard from 'components/activity-card';
import { getCurrencyFormatDecimal, getCurrencyFormatString } from 'lib/currency';
import { formatCurrency, getCurrencyFormatDecimal } from 'lib/currency';
import { getOrderRefundTotal } from 'lib/order-values';
import { Section } from 'layout/section';
@ -53,11 +53,11 @@ function OrdersList( { orders } ) {
</span>{' '}
{ refundValue ? (
<span>
<s>{ getCurrencyFormatString( total ) }</s>{' '}
{ getCurrencyFormatString( remainingTotal ) }
<s>{ formatCurrency( total, order.currency ) }</s>{' '}
{ formatCurrency( remainingTotal, order.currency ) }
</span>
) : (
<span>{ getCurrencyFormatString( total ) }</span>
<span>{ formatCurrency( total, order.currency ) }</span>
) }
</div>
</ActivityCard>