From c727e150f7f7116572f22b3cd2290176e8a7a94e Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Tue, 9 Jun 2020 08:19:16 +0200 Subject: [PATCH] fix: added parseFloat in isInt Signed-off-by: Corentin Thomasset --- src/utils/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers.js b/src/utils/helpers.js index e847c420..87cf2860 100644 --- a/src/utils/helpers.js +++ b/src/utils/helpers.js @@ -25,7 +25,7 @@ const formatBytes = (bytes, decimals = 2) => { } const isInt = (value) => { - return Number.isInteger(value); + return Number.isInteger(parseFloat(value)); } export {