Skip to content

Commit

Permalink
add null safe operator to acceptance reminder
Browse files Browse the repository at this point in the history
  • Loading branch information
Godmartinz committed Dec 11, 2024
1 parent 5014a95 commit 2e97b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/SendAcceptanceReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function handle()
$locale = $acceptance->assignedTo?->locale;
$email = $acceptance->assignedTo?->email;
if(!$email){
$this->info($acceptance->assignedTo->present()->fullName().' has no email address.');
$this->info($acceptance->assignedTo?->present()->fullName().' has no email address.');
}
$item_count = $unacceptedAssetGroup->count();

Expand Down

0 comments on commit 2e97b56

Please sign in to comment.