forked from aslan/applicant-site
prodV1 #2
|
@ -45,7 +45,7 @@ class CalculatorController extends Controller
|
|||
}, true);
|
||||
})
|
||||
->filter(function ($subjectTypes) use ($calcultatorSubjects) {
|
||||
if(array_key_exists(2, $subjectTypes)) {
|
||||
if (array_key_exists(2, $subjectTypes)) {
|
||||
$optionalSubjectsInCalculator = collect($subjectTypes[2])
|
||||
->filter(fn($optionalSubject) => in_array($optionalSubject, $calcultatorSubjects));
|
||||
return $optionalSubjectsInCalculator->count() !== 0;
|
||||
|
|
Loading…
Reference in New Issue