Skip to content

Commit

Permalink
[COASTAL-1433] only start bolus when previous state was noBolus or in…
Browse files Browse the repository at this point in the history
…itiating (#725)
  • Loading branch information
nhamming authored Nov 18, 2024
1 parent 904b8f9 commit 7c90bdd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Loop/View Controllers/StatusTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,11 @@ final class StatusTableViewController: LoopChartsTableViewController {
switch bolusState {
case .inProgress(_):
guard case .inProgress = oldValue else {
// Bolus starting
bolusProgressReporter = deviceManager.pumpManager?.createBolusProgressReporter(reportingOn: DispatchQueue.main)
guard case .canceling = oldValue else {
// Bolus starting
bolusProgressReporter = deviceManager.pumpManager?.createBolusProgressReporter(reportingOn: DispatchQueue.main)
break
}
break
}
default:
Expand Down

0 comments on commit 7c90bdd

Please sign in to comment.