diff --git a/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/models/AgreementChecker.kt b/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/models/AgreementChecker.kt index 96ceccfb..97ecdc37 100644 --- a/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/models/AgreementChecker.kt +++ b/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/models/AgreementChecker.kt @@ -5,7 +5,8 @@ import kotlinx.serialization.Serializable @Serializable data class AgreementChecker(val name: String, val email: String, val agreements: List) { - fun allRequiredChecked() = agreements.filter { it.required }.all { it.checked } + fun allRequiredChecked() = + name.isNotBlank() && email.isNotBlank() && agreements.filter { it.required }.all { it.checked } } @Serializable