diff options
author | 2020-06-09 08:19:16 +0200 | |
---|---|---|
committer | 2020-06-09 08:19:16 +0200 | |
commit | c727e150f7f7116572f22b3cd2290176e8a7a94e (patch) | |
tree | 7d6c133e00f165c33cf9f5d3a602cece2c4dfe5d /src/utils/helpers.js | |
parent | 8158f29d62e82e8acb7886f6eddb40027fb625e3 (diff) | |
download | it-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.js | 2 |
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 { |