From 6ef05f96832036d9bd950949dacb10e695b5ed31 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Tue, 27 Oct 2020 18:21:03 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eincidence.js=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- incidence.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/incidence.js b/incidence.js index 9498ee9..58636d3 100644 --- a/incidence.js +++ b/incidence.js @@ -28,10 +28,10 @@ async function createWidget(items) { label.textColor = data.incidence >= 50 ? Color.red() : data.incidence >= 35 ? Color.orange() : Color.green() list.addText(data.areaName) - const label2 = list.addText(data2.incidence+"") + const label2 = list.addText(data.incidence2+"") label2.font = Font.boldSystemFont(24) - label2.textColor = data2.incidence >= 50 ? Color.red() : data2.incidence >= 35 ? Color.orange() : Color.green() - list.addText(data2.areaName) + label2.textColor = data.incidence2 >= 50 ? Color.red() : data.incidence2 >= 35 ? Color.orange() : Color.green() + list.addText(data.areaName2) if(data.shouldCache) { list.refreshAfterDate = new Date(Date.now() + 60*60*1000)