2
0
mirror of https://github.com/frappe/books.git synced 2025-01-25 16:18:33 +00:00

chore: remove redundant length check

This commit is contained in:
18alantom 2022-01-18 12:14:37 +05:30
parent 8f5d71f743
commit a51c4bac64

View File

@ -116,10 +116,7 @@ export default {
return thetas.map((t, i) => [t.i, t.value, starts[i]]); return thetas.map((t, i) => [t.i, t.value, starts[i]]);
}, },
hasNonZeroValues() { hasNonZeroValues() {
return ( return this.thetasAndStarts.some((t) => this.sectors[t[0]].value !== 0);
this.thetasAndStarts.length > 0 &&
this.thetasAndStarts.some((t) => this.sectors[t[0]].value !== 0)
);
}, },
}, },
methods: { methods: {