diff --git a/src/main/utils/utils.js b/src/main/utils/utils.js index 585918a..5795eb8 100644 --- a/src/main/utils/utils.js +++ b/src/main/utils/utils.js @@ -22,7 +22,7 @@ module.exports = (() => { const getFilterIdFromDirName = (str) => { const chunks = str.split('_'); const rawId = chunks.length > 1 ? Number(chunks[1]) : 0; - return !isNaN(rawId) ? rawId : 0; + return !Number.isNaN(rawId) ? rawId : 0; }; return {