TP-111|Kunal|undefined check in getNumberFormat (#1001)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user