From 581de5f6a9da721ccf7c134f7ae275919345cf28 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 28 Dec 2021 11:37:59 +0530 Subject: [PATCH] refactor: don't pass display, it's set on init --- utils/numberFormat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/numberFormat.js b/utils/numberFormat.js index c874bcbf..dc023c65 100644 --- a/utils/numberFormat.js +++ b/utils/numberFormat.js @@ -131,8 +131,7 @@ module.exports = { } if (value.round) { - const displayPrecision = this.getDisplayPrecision(); - return currencyFormatter.format(value.round(displayPrecision)); + return currencyFormatter.format(value.round()); } const formattedCurrency = currencyFormatter(value);