Преглед на файлове

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

Jon Mårtensson преди 3 години
родител
ревизия
2937331b7f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)
         }
     }