diff --git a/src/app/components/events/event-details/event-details.component.ts b/src/app/components/events/event-details/event-details.component.ts index 35c2801..2da95f1 100644 --- a/src/app/components/events/event-details/event-details.component.ts +++ b/src/app/components/events/event-details/event-details.component.ts @@ -52,7 +52,7 @@ export class EventDetailsComponent { shareOnFacebook() { const url = this.completeUrl(window.location.href); - const text = this.getEventDescriptionText(url); + const text = this.event!.title!; window.open(`https://www.facebook.com/sharer/sharer.php?u=${url}&t=${encodeURIComponent(text)}`, '_blank'); }