From 0788f186d2ebe2792904842a9ba40c2a0e94e08e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81my=20Rakic?= Date: Fri, 4 Aug 2017 00:46:11 +0200 Subject: [PATCH] Fix for 'undefineds' on the summary, and a couple visual tweaks --- static/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index e37400afd..0adf285d5 100644 --- a/static/index.html +++ b/static/index.html @@ -86,9 +86,10 @@ d_class = "positive"; } - if (datum == 0) { - datum = "-"; + if (datum == 0 || datum === undefined) { + datum = "—"; } else { + datum = datum.toFixed(2); datum += "s"; }