Skip to content

Commit ba08fa3

Browse files
jasoncalabreseps2
authored andcommitted
select the pickerValue based on 75% of recommendedBolus (#761)
previously was using 75% of the pickerValue also remove the extra casting
1 parent 64f8326 commit ba08fa3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

WatchApp Extension/Controllers/BolusInterfaceController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ final class BolusInterfaceController: WKInterfaceController, IdentifiableClass {
9393
maxBolusValue = recommendedBolus
9494
}
9595

96-
let recommendedPickerValue = pickerValueFromBolusValue(recommendedBolus)
97-
pickerValue = Int(Double(recommendedPickerValue) * 0.75)
96+
pickerValue = pickerValueFromBolusValue(recommendedBolus * 0.75)
9897

9998
if let valueString = formatter.string(from: recommendedBolus) {
10099
recommendedValueLabel.setText(String(format: NSLocalizedString("Rec: %@ U", comment: "The label and value showing the recommended bolus"), valueString).localizedUppercase)

0 commit comments

Comments
 (0)