diff --git a/src/Types/Event.php b/src/Types/Event.php index f340dac..c072caf 100644 --- a/src/Types/Event.php +++ b/src/Types/Event.php @@ -112,7 +112,7 @@ public function toICalendarEvent(string|CarbonInterface $date): ?ICalendarEvent ->startsAt($immutableDate->setTimeFromTimeString($this->startTime())) ->endsAt($immutableDate->setTimeFromTimeString($this->endTime())); - if (! is_null($address = $this->event->address ?? $this->event->location)) { + if (! is_null($address = $this->event->address ?? $this->event->get('location'))) { $iCalEvent->address($address); }