summaryrefslogtreecommitdiff
path: root/src/utils/helpers.js
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2020-06-09 08:19:16 +0200
committerGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2020-06-09 08:19:16 +0200
commitc727e150f7f7116572f22b3cd2290176e8a7a94e (patch)
tree7d6c133e00f165c33cf9f5d3a602cece2c4dfe5d /src/utils/helpers.js
parent8158f29d62e82e8acb7886f6eddb40027fb625e3 (diff)
downloadit-tools-c727e150f7f7116572f22b3cd2290176e8a7a94e.tar.gz
it-tools-c727e150f7f7116572f22b3cd2290176e8a7a94e.tar.zst
it-tools-c727e150f7f7116572f22b3cd2290176e8a7a94e.zip
fix: added parseFloat in isInt
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
Diffstat (limited to '')
-rw-r--r--src/utils/helpers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/helpers.js b/src/utils/helpers.js
index e847c42..87cf286 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 {