From df37176175214651f9d2ec9d8e9817f5946b29d6 Mon Sep 17 00:00:00 2001 From: Nathaniel Hamming Date: Thu, 6 Feb 2025 13:07:50 -0400 Subject: [PATCH] [LOOP-5232] zero out the bolus amount (#753) --- Loop/Views/BolusEntryView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Loop/Views/BolusEntryView.swift b/Loop/Views/BolusEntryView.swift index 980521b84..9cca3cf1b 100644 --- a/Loop/Views/BolusEntryView.swift +++ b/Loop/Views/BolusEntryView.swift @@ -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 {