Skip to content

Commit

Permalink
Fix for delete ("-") button in Add Cabs View.
Browse files Browse the repository at this point in the history
Clears to "0" when deleted.
  • Loading branch information
Jon-b-m committed May 8, 2023
1 parent 6415c3e commit 2937331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Views/DecimalTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct DecimalTextField: UIViewRepresentable {
let coordinator = context.coordinator
if coordinator.isEditing {
coordinator.resetEditing()
} else if value != 0 {
} else /* if value != 0 */ {
textField.text = formatter.string(for: value)
}
}
Expand Down

0 comments on commit 2937331

Please sign in to comment.