JPY was configured wrongly: it doesn't use subunits

This commit is contained in:
Vesa Luusua 2019-03-27 17:21:51 +02:00
parent 1e4c26ac77
commit d6545edc25
2 changed files with 3 additions and 1 deletions

View file

@ -78,6 +78,8 @@ const currencyConfig = {
currency,
currencyDisplay: 'symbol',
useGrouping: true,
// Note: you should change fraction digits to 0,
// if the currency is not using subunits (like JPY).
minimumFractionDigits: 2,
maximumFractionDigits: 2,
};

View file

@ -7,7 +7,7 @@ export const subUnitDivisors = {
AUD: 100,
CAD: 100,
DKK: 100,
JPY: 100,
JPY: 1,
SGD: 100,
SEK: 100,
CHF: 100,