diff --git a/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java b/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java index 85fbeb89..bfbaecce 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java +++ b/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java @@ -79,7 +79,7 @@ private void processMainProgramCompleteRules(List nonGradReason nonGReasons = new ArrayList<>(); nonGReasons.addAll(requirementsNotMet); - obj.setNonGradReasonsOptionalProgram(nonGReasons); + obj.setNonGradReasonsOptionalProgram(nonGReasons.stream().distinct().toList()); } } }