commit ef9b997fca684d6a2a6f835aa532a53a45985712
parent 1ce1fcd85192d534153e3f5b963092d2d69310b4
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date: Fri, 16 Nov 2018 17:06:31 +1300
[~] Linter recommends `isNaN` function over `===`.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/desktop/ui/src/App.vue b/cmd/desktop/ui/src/App.vue
@@ -127,7 +127,7 @@ export default {
let numbers = ["start", "end", "fps", "width", "height", "quality"]
numbers.forEach(v => {
let n = Number(this.form[v])
- if (n === NaN) {
+ if (isNaN(n)) {
this.pushMessage({
name: "Form Validation",
description: `${v} should be a number, got ${typeof this.form[v]}`,