Skip to content

Commit ccb5f21

Browse files
authored
Merge pull request #1526 from LoopKit/update-during-bolus-auth-fix
Prevent background recommendation update during bolus auth
2 parents e4eeffe + df283bc commit ccb5f21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Loop/View Models/BolusEntryViewModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ final class BolusEntryViewModel: ObservableObject {
338338

339339
// Authenticate the bolus before saving anything
340340
if enteredBolus.doubleValue(for: .internationalUnit()) > 0 {
341+
isInitiatingSaveOrBolus = true
341342
let message = String(format: NSLocalizedString("Authenticate to Bolus %@ Units", comment: "The message displayed during a device authentication prompt for bolus specification"), enteredBolusAmountString)
342343
authenticate(message) { [weak self] in
343344
switch $0 {

0 commit comments

Comments
 (0)