瀏覽代碼

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

fix #211 issue
bjornoleh 2 年之前
父節點
當前提交
42421681cb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      FreeAPS/Sources/Modules/AddCarbs/View/AddCarbsRootView.swift

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