Skip to content

Commit 90559eb

Browse files
committed
Chaged Number.isNaN to logical or
1 parent de24ff9 commit 90559eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/datautils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function getCounts() {
122122
'sum'
123123
);
124124

125-
var filterNaN = (data) => Number.isNaN(data)? 0 : data;
125+
var filterNaN = (data) => data || 0;
126126

127127
var counts = Promise.all([participants, claims, accepted, totalclaimed])
128128
.then((values) => values.map(filterNaN));

0 commit comments

Comments
 (0)