Skip to content

Commit 477ab82

Browse files
committed
fix: content가 빈 문자열이어도 작성 가능하도록 수정
1 parent aa73dc1 commit 477ab82

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

DevLog/Presentation/ViewModel/TodoEditorViewModel.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ final class TodoEditorViewModel: Store {
4545
var hasDueDate: Bool { dueDate != nil }
4646
var tabViewTag: Tag = .editor
4747
var isValidToSave: Bool {
48-
!title.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty &&
49-
!content.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
48+
!title.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
5049
}
5150
}
5251

0 commit comments

Comments
 (0)