Skip to content

Commit

Permalink
fix: compensate for donors without donations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Dec 7, 2023
1 parent 584621b commit c05bc4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function getUniqueDonationFormsForDonor(Donor $donor): array
{
$formIds = array_map(static function (Donation $donation) {
return $donation->formId;
}, $donor->donations);
}, $donor->donations ?? []);

$formIds = array_filter($formIds, static function ($formId) {
return !give(DonationFormRepository::class)->isLegacyForm($formId);
Expand Down

0 comments on commit c05bc4a

Please sign in to comment.