diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php index 8e9c6c2565..22867da32f 100644 --- a/app/Listeners/CheckoutableListener.php +++ b/app/Listeners/CheckoutableListener.php @@ -65,7 +65,7 @@ class CheckoutableListener $mailable = $this->getCheckoutMailType($event, $acceptance); $notifiable = $this->getNotifiables($event); - if (!$event->checkedOutTo->locale){ + if ($event->checkedOutTo->locale){ $mailable->locale($event->checkedOutTo->locale); } // Send email notifications @@ -147,7 +147,7 @@ class CheckoutableListener $ccEmails = array_filter($adminCcEmailsArray); $mailable = $this->getCheckinMailType($event); $notifiable = $this->getNotifiables($event); - if (!$event->checkedOutTo->locale){ + if ($event->checkedOutTo->locale){ $mailable->locale($event->checkedOutTo->locale); } // Send email notifications