Skip to content

Commit f72a3a9

Browse files
committed
use correct 'or' operator
1 parent ff86130 commit f72a3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Chart.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@
720720
ctx.beginPath();
721721
for (let i = 0; i < data.length; i++) {
722722
const ptVal = dataset.getPointValue(i);
723-
if (isNaN(ptVal) or ptVal == null) {
723+
if (isNaN(ptVal) || ptVal == null) {
724724
continue;
725725
}
726726
const y = value2y(ptVal);

0 commit comments

Comments
 (0)