Skip to content

Commit

Permalink
Merge pull request #1475 from sriranjan-s/master
Browse files Browse the repository at this point in the history
added pedency change to 0
  • Loading branch information
upyog-central-git authored Oct 15, 2024
2 parents a0715a6 + e7b254e commit 594468a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ export const formatter = (value, symbol, unit, commaSeparated = true, t, isDecim

const Nformatter = new Intl.NumberFormat("en-IN");
return Nformatter.format(Math.round(value));
case "percentage":
const Pformatter = new Intl.NumberFormat("en-IN", { maximumSignificantDigits: 3 });
return `${Pformatter.format(value.toFixed(2))} %`;
case "percentage":
const Pformatter = new Intl.NumberFormat("en-IN", { maximumSignificantDigits: 3 });
const formattedValue = Pformatter.format(Math.max(0, value).toFixed(2)); // Ensures value is non-negative
return `${formattedValue} %`;

default:
return "";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@upyog/digit-ui-module-dss",
"version": "1.8.10",
"version": "1.8.11",
"license": "MIT",
"description": "Digit Dashboard Module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion frontend/micro-ui/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@upyog/digit-ui-module-common": "1.8.12",
"@upyog/digit-ui-module-core": "1.8.2",
"@upyog/digit-ui-module-engagement": "1.8.0",
"@upyog/digit-ui-module-dss": "1.8.10",
"@upyog/digit-ui-module-dss": "1.8.11",
"@upyog/digit-ui-module-fsm": "1.8.17",
"@upyog/digit-ui-module-hrms": "1.8.0",
"@upyog/digit-ui-module-mcollect": "1.8.8",
Expand Down

0 comments on commit 594468a

Please sign in to comment.