Skip to content

Commit

Permalink
[LOOP-5232] zero out the bolus amount (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamming authored Feb 6, 2025
1 parent 802506a commit df37176
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Loop/Views/BolusEntryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ struct BolusEntryView: View {
newEnteredBolusString = viewModel.formatBolusAmount(amount)
}
enteredBolusStringBinding.wrappedValue = newEnteredBolusString
} else {
// If the recommendation changes, and the user has edited the bolus amount, set the bolus amount to 0
enteredBolusStringBinding.wrappedValue = "0"
}
}
.task {
Expand Down

0 comments on commit df37176

Please sign in to comment.