Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 5, 2021
1 parent 777d780 commit 89d2f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
"template-curly-spacing": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unassigned-import": "off",
"import/no-named-as-default-member": "off",
"react/jsx-closing-tag-location": "off",
"react/require-default-props": "off",
"react/jsx-curly-brace-presence": "off",
Expand Down
2 changes: 1 addition & 1 deletion renderer/utils/inputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const handleInputKeyPress = (onChange, min, max) => event => {

const multiplier = event.shiftKey ? 10 : 1;
const parsedValue = Number.parseInt(event.currentTarget.value, 10);
if (parsedValue === Number.NaN) {
if (Number.isNaN(parsedValue)) {
return;
}

Expand Down

0 comments on commit 89d2f66

Please sign in to comment.