From 5d966ae5cacf2eba67623debf07640837a3fe57e Mon Sep 17 00:00:00 2001 From: mikrise2 Date: Fri, 24 Nov 2023 00:00:05 +0100 Subject: [PATCH] [ML4SE-237] fixed agreement page. --- .../tasktracker/ui/main/panel/models/AgreementChecker.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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