Skip to content

Commit ae42e19

Browse files
Merge pull request #137 from lqd/fix-undefined
Fix for 'undefineds' on the summary, and a couple visual tweaks
2 parents e2a022e + 0788f18 commit ae42e19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

static/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@
8686
d_class = "positive";
8787
}
8888

89-
if (datum == 0) {
90-
datum = "-";
89+
if (datum == 0 || datum === undefined) {
90+
datum = "—";
9191
} else {
92+
datum = datum.toFixed(2);
9293
datum += "s";
9394
}
9495

0 commit comments

Comments
 (0)