From 095fef48683fd8613dc04a11f153136ef3fd3325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Sat, 28 Nov 2020 20:50:35 +0100 Subject: [PATCH] chore: minor code smell --- static/assets/app.js | 2 +- views/index.tpl.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/assets/app.js b/static/assets/app.js index 4fe94a3..1e9ccb9 100644 --- a/static/assets/app.js +++ b/static/assets/app.js @@ -203,7 +203,7 @@ function togglePlaceholders(mask) { } function getPresentDataMask() { - return data.map(list => list ? list.reduce((acc, e) => acc + e.total, 0) : 0 > 0) + return data.map(list => (list ? list.reduce((acc, e) => acc + e.total, 0) : 0) > 0) } function getContainer(chart) { diff --git a/views/index.tpl.html b/views/index.tpl.html index 27387cf..89061d8 100644 --- a/views/index.tpl.html +++ b/views/index.tpl.html @@ -29,13 +29,13 @@
- + App screenshot
@@ -55,9 +55,9 @@
- - - + License badge + Go version badge + Wakapi coding time badge