Skip to content

Commit

Permalink
Fixes Issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Kennedy committed Feb 20, 2018
1 parent 5f99069 commit ac37a90
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ui/chart/GlucoseChart.as
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,13 @@ package ui.chart
* Initial variables
*/
if(!dummyModeActive)
selectedGlucoseMarkerIndex = mainChartGlucoseMarkersList[mainChartGlucoseMarkersList.length - 1].index;
{
if (mainChartGlucoseMarkersList[mainChartGlucoseMarkersList.length - 1].index != null && mainChartGlucoseMarkersList[mainChartGlucoseMarkersList.length - 1].index != undefined)
selectedGlucoseMarkerIndex = mainChartGlucoseMarkersList[mainChartGlucoseMarkersList.length - 1].index;
else
selectedGlucoseMarkerIndex = 0;
}


displayLatestBGValue = true;

Expand Down

0 comments on commit ac37a90

Please sign in to comment.