Explorar o código

Fix for delete ("-") button in Add Cabs View.
Clears to "0" when deleted.

Jon Mårtensson %!s(int64=3) %!d(string=hai) anos
pai
achega
2937331b7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      FreeAPS/Sources/Views/DecimalTextField.swift

+ 1 - 1
FreeAPS/Sources/Views/DecimalTextField.swift

@@ -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)
         }
     }