Sfoglia il codice sorgente

Merge pull request #215 from avouspierre/dev+carb+note

fix #211 issue
bjornoleh 2 anni fa
parent
commit
42421681cb

+ 1 - 1
FreeAPS/Sources/Modules/AddCarbs/View/AddCarbsRootView.swift

@@ -57,7 +57,7 @@ extension AddCarbs {
                     HStack {
                         Text("Note").foregroundColor(.secondary)
                         TextField("", text: $state.note).multilineTextAlignment(.trailing)
-                        if state.note != "", isFocused {
+                        if isFocused {
                             Button { isFocused = false } label: { Image(systemName: "keyboard.chevron.compact.down") }
                                 .controlSize(.mini)
                         }