You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
annotations.push(t('**Avg. Daily Insulin:** All basal and bolus insulin delivery (in Units) added together, divided by the number of days in this view.'));
321
+
annotations.push(t('**Avg. Daily Insulin:** All basal and bolus insulin delivery (in Units) added together, divided by the number of days in this view for which we have insulin data.'));
322
322
}else{
323
323
annotations.push(t('**Daily Insulin:** All basal and bolus insulin delivery (in Units) added together.'));
324
324
}
325
325
break;
326
326
327
327
casecommonStats.carbs:
328
328
if(days>1){
329
-
annotations.push(t('**Avg. Daily Carbs**: All carb entries added together, then divided by the number of days in this view. Note, these entries come from either bolus wizard events, or Apple Health records.'));
329
+
annotations.push(t('**Avg. Daily Carbs**: All carb entries added together, then divided by the number of days in this view for which we have carb data. Note, these entries come from either bolus wizard events, or Apple Health records.'));
330
330
}else{
331
331
annotations.push(t('**Total Carbs**: All carb entries from bolus wizard events or Apple Health records added together.'));
annotations.push(t('**Total Insulin:** All basal and bolus insulin delivery (in Units) added together, divided by the number of days in this view'));
388
+
annotations.push(t('**Total Insulin:** All basal and bolus insulin delivery (in Units) added together, divided by the number of days in this view for which we have insulin data'));
389
389
}else{
390
390
annotations.push(t('**Total Insulin:** All basal and bolus insulin delivery (in Units) added together'));
391
391
}
392
-
annotations.push(t('**How we calculate this:**\n\n**(%)** is the respective total of basal or bolus delivery divided by total insulin delivered for this time period.'));
392
+
annotations.push(t('**How we calculate this:**\n\n**(%)** is the respective total of basal or bolus delivery divided by total insulin delivered for the time period for which we have insulin data.'));
'**Avg. Daily Insulin:** All basal and bolus insulin delivery (in Units) added together, divided by the number of days in this view.',
875
+
'**Avg. Daily Insulin:** All basal and bolus insulin delivery (in Units) added together, divided by the number of days in this view for which we have insulin data.',
876
876
]);
877
877
});
878
878
});
@@ -887,7 +887,7 @@ describe('stat', () => {
887
887
888
888
it('should return annotations for `carbs` stat when viewing multiple days of data',()=>{
'**Avg. Daily Carbs**: All carb entries added together, then divided by the number of days in this view. Note, these entries come from either bolus wizard events, or Apple Health records.',
890
+
'**Avg. Daily Carbs**: All carb entries added together, then divided by the number of days in this view for which we have carb data. Note, these entries come from either bolus wizard events, or Apple Health records.',
891
891
'Derived from _**10**_ carb entries.',
892
892
]);
893
893
});
@@ -1033,14 +1033,14 @@ describe('stat', () => {
1033
1033
it('should return annotations for `totalInsulin` stat when viewing a single day of data',()=>{
'**Total Insulin:** All basal and bolus insulin delivery (in Units) added together',
1036
-
'**How we calculate this:**\n\n**(%)** is the respective total of basal or bolus delivery divided by total insulin delivered for this time period.',
1036
+
'**How we calculate this:**\n\n**(%)** is the respective total of basal or bolus delivery divided by total insulin delivered for the time period for which we have insulin data.',
1037
1037
]);
1038
1038
});
1039
1039
1040
1040
it('should return annotations for `totalInsulin` stat when viewing multiple days of data',()=>{
'**Total Insulin:** All basal and bolus insulin delivery (in Units) added together, divided by the number of days in this view',
1043
-
'**How we calculate this:**\n\n**(%)** is the respective total of basal or bolus delivery divided by total insulin delivered for this time period.',
1042
+
'**Total Insulin:** All basal and bolus insulin delivery (in Units) added together, divided by the number of days in this view for which we have insulin data',
1043
+
'**How we calculate this:**\n\n**(%)** is the respective total of basal or bolus delivery divided by total insulin delivered for the time period for which we have insulin data.',
0 commit comments