diff --git a/backend/vkt/src/main/java/fi/oph/vkt/service/PublicEnrollmentService.java b/backend/vkt/src/main/java/fi/oph/vkt/service/PublicEnrollmentService.java index fde39caad..43200fbb3 100644 --- a/backend/vkt/src/main/java/fi/oph/vkt/service/PublicEnrollmentService.java +++ b/backend/vkt/src/main/java/fi/oph/vkt/service/PublicEnrollmentService.java @@ -493,7 +493,8 @@ public PublicEnrollmentDTO createEnrollmentToQueue( ); if (freeEnrollmentDetails != null && freeEnrollment != null) { - if (freeEnrollmentDetails.textualSkillCount() == 0 || freeEnrollmentDetails.oralSkillCount() == 0) { + if (EnrollmentUtil.getFreeExamsLeft(freeEnrollmentDetails.textualSkillCount()) == 0 + || EnrollmentUtil.getFreeExamsLeft(freeEnrollmentDetails.oralSkillCount()) == 0) { publicEnrollmentEmailService.sendPartiallyFreeEnrollmentToQueueConfirmationEmail( enrollment, person,