diff --git a/src/CONST.ts b/src/CONST.ts index dd192f1b257c..37630d33d72a 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1140,6 +1140,7 @@ const CONST = { DISTANCE_UNIT_KILOMETERS: 'km', MILEAGE_IRS_RATE: 0.655, DEFAULT_RATE: 'Default Rate', + RATE_DECIMALS: 3, }, TERMS: { diff --git a/src/libs/PolicyUtils.js b/src/libs/PolicyUtils.js index 85031c0464eb..eed2d5617788 100644 --- a/src/libs/PolicyUtils.js +++ b/src/libs/PolicyUtils.js @@ -67,7 +67,7 @@ function getNumericValue(value, toLocaleDigit) { if (Number.isNaN(numValue)) { return NaN; } - return numValue.toFixed(3); + return numValue.toFixed(CONST.CUSTOM_UNITS.RATE_DECIMALS); } /**