Make linter happy

This commit is contained in:
Henri Bergius 2018-03-07 16:09:51 +01:00
parent fe40eda28f
commit 9e64478854

View file

@ -107,7 +107,7 @@ class LineChart extends Component {
return res;
});
const shapes = references.split(' ').filter(spec => !isNaN(parseFloat(spec))).map((spec, idx) => {
const shapes = references.split(' ').filter(spec => !Number.isNaN(parseFloat(spec))).map((spec, idx) => {
let colorIdx = data.length + idx;
if (colorIdx > colors.length) {
// Start cycle again