prodV1 #2

Open
RomanGolienko wants to merge 309 commits from prodV1 into main
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 9fcd049173 - Show all commits

View File

@ -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;