From f6abf90ba07dadfe4b26fc0a795069bdf5216a20 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Tue, 7 Jan 2025 10:51:48 -0800 Subject: [PATCH] fix locale check --- app/Listeners/CheckoutableListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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