Merge branch 'dev' into feature/CF2-72-AdminPanel

This commit is contained in:
Александр Сироткин 2021-12-13 11:54:17 +05:00
commit 6ce6ba04ea

View File

@ -14,7 +14,7 @@ export const formatDate='YYYY.MM.DD HH:mm'
export const makeNumericRender = (fixed?: number) => (value: any, row: object): ReactNode => { export const makeNumericRender = (fixed?: number) => (value: any, row: object): ReactNode => {
let val = '-' let val = '-'
if (value && Number.isFinite(+value)) { if ((value ?? null) !== null && Number.isFinite(+value)) {
val = !!fixed val = !!fixed
? (+value).toFixed(fixed) ? (+value).toFixed(fixed)
: (+value).toPrecision(5) : (+value).toPrecision(5)