TP-111|Kunal|undefined check in getNumberFormat (#1001)

This commit is contained in:
Kunal Sharma
2024-06-13 10:42:16 +05:30
committed by GitHub
parent 3f9efdffe1
commit 02128b5334

View File

@@ -32,7 +32,7 @@ export enum DEVICES {
}
export const getNumberFormat = (value: number | bigint | undefined, fractionalDigits: number) => {
if (!value) return;
if (typeof value === 'undefined') return '';
return new Intl.NumberFormat('en-IN', {
style: 'currency',
maximumFractionDigits: fractionalDigits,