Explorar el Código

fix: inverted condition when propogating status

Sam Jaffe hace 3 semanas
padre
commit
8025d32ea7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Todos/View/TaskView.swift

+ 1 - 1
Todos/View/TaskView.swift

@@ -26,7 +26,7 @@ struct TaskView: View {
         .onChange(of: task.status) {
           if task.status.isStrong {
             task.subtasks
-              .filter({ $0.status.isStrong })
+              .filter({ !$0.status.isStrong })
               .forEach({ subtask in subtask.status = task.status })
           }
         }