From a77dd7d4a93dab6669bc0425b1cb18fc4bd4fb4f Mon Sep 17 00:00:00 2001 From: "DESKTOP-OFEOCD1\\Ryan" Date: Sat, 14 Apr 2018 16:36:07 -0400 Subject: [PATCH] fix trend arrow when in mmol --- Glance/app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Glance/app/index.js b/Glance/app/index.js index 0d3b171d..e7e5eb21 100644 --- a/Glance/app/index.js +++ b/Glance/app/index.js @@ -196,6 +196,7 @@ function processWeatherData(data) { // Display the data received from the companion function processOneBg(data) { console.log("bg is: " + JSON.stringify(data)); + setArrowDirection(data.delta) if(data.nextPull) { if(data.units_hint === 'mmol') { data.sgv = mmol( data.sgv ) @@ -204,7 +205,6 @@ function processOneBg(data) { document.getElementById("bg").text = data.sgv document.getElementById("delta").text = data.delta + ' ' + data.units_hint - setArrowDirection(data.delta) totalSeconds = 0; setStatusImage('checked.png') clearTimeout(timeOut);