diff options
author | 2020-06-11 13:32:18 +0200 | |
---|---|---|
committer | 2020-06-11 16:19:26 +0200 | |
commit | 24fd5e7aaf67c68f84c6d73f80cf0c6b3024e60a (patch) | |
tree | 19b091787e5a6037f5caa15fb2a448c59b54ba31 /src/utils/helpers.js | |
parent | 94cb74d43423e1eb07ca33223b11b1b3e3da5d21 (diff) | |
download | it-tools-24fd5e7aaf67c68f84c6d73f80cf0c6b3024e60a.tar.gz it-tools-24fd5e7aaf67c68f84c6d73f80cf0c6b3024e60a.tar.zst it-tools-24fd5e7aaf67c68f84c6d73f80cf0c6b3024e60a.zip |
Use vue-typecast
https://vuejs.org/v2/guide/forms.html#number
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 87cf286..e847c42 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(parseFloat(value)); + return Number.isInteger(value); } export { |