diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php index 6037ee1ec4..145abb1687 100644 --- a/app/Listeners/CheckoutableListener.php +++ b/app/Listeners/CheckoutableListener.php @@ -307,7 +307,7 @@ class CheckoutableListener return $event->checkedOutTo->manager?->email ?? ''; } else{ - return $event->checkedOutTo->email; + return $event->checkedOutTo?->email ?? ''; } }