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)