[offers][fix] display currency

pull/402/head
Zhang Ziqing 3 years ago
parent e66b8d0ebc
commit eedd88169d

@ -10,5 +10,5 @@ export function convertCurrencyToString({ currency, value }: Money) {
minimumFractionDigits: 0, // (causes 2500.99 to be printed as $2,501)
style: 'currency',
});
return `${formatter.format(10000)}`; /* $2,500.00 */
return `${formatter.format(value)}`;
}

Loading…
Cancel
Save