Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Apr 4, 2024
1 parent de827f1 commit 53d296f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 53d296f

Please sign in to comment.