|
@@ -263,7 +263,7 @@ extension Bolus {
|
|
|
addButtonPressed = true
|
|
addButtonPressed = true
|
|
|
|
|
|
|
|
// if glucose data is stale end the custom loading animation by hiding the modal
|
|
// if glucose data is stale end the custom loading animation by hiding the modal
|
|
|
- //alternatively only set waitforSuggestion to false...
|
|
|
|
|
|
|
+ // alternatively only set waitforSuggestion to false...
|
|
|
let lastGlucoseDate = glucoseStorage.lastGlucoseDate()
|
|
let lastGlucoseDate = glucoseStorage.lastGlucoseDate()
|
|
|
guard lastGlucoseDate >= Date().addingTimeInterval(-12.minutes.timeInterval) else {
|
|
guard lastGlucoseDate >= Date().addingTimeInterval(-12.minutes.timeInterval) else {
|
|
|
return hideModal()
|
|
return hideModal()
|