diff --git a/src/imex/export/useExportTable.ts b/src/imex/export/useExportTable.ts index 04d20f28..61b86be6 100644 --- a/src/imex/export/useExportTable.ts +++ b/src/imex/export/useExportTable.ts @@ -1,4 +1,4 @@ -import { get, isNumber } from 'lodash' +import { get, isFinite } from 'lodash' import * as React from 'react' import { getImexColumns } from '../getImexColumns' @@ -51,8 +51,8 @@ export const useExportTable = ( return exportOptions.type === 'xls' && valueType === 'number' && - !isNumber(value) && - value !== null + !isFinite(value) && + value != null ? Number(value) : value })