fix: added parseFloat in isInt

Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
Corentin Thomasset 2020-06-09 08:19:16 +02:00
parent 8158f29d62
commit c727e150f7

View file

@ -25,7 +25,7 @@ const formatBytes = (bytes, decimals = 2) => {
} }
const isInt = (value) => { const isInt = (value) => {
return Number.isInteger(value); return Number.isInteger(parseFloat(value));
} }
export { export {