Merge pull request #1911 from Hafizzle/Fiz/todo-discard-fix

discard task changes dueDate null check
This commit is contained in:
Phillip Thelen 2023-01-18 14:11:18 +01:00 committed by GitHub
commit 6a474841fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -423,7 +423,7 @@ open class Task : RealmObject, BaseMainObject, Parcelable, BaseTask {
else -> false
}
} else if (type == TaskType.TODO) {
return dueDate != task.dueDate
return (dueDate != task.dueDate && task.dueDate != null)
} else if (type == TaskType.REWARD) {
return value != task.value
} else {