diff --git a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts index e745209a..20a253b7 100644 --- a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts +++ b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts @@ -36,9 +36,12 @@ export class OfferDetailsComponent implements OnInit { } share() { console.log(this.details); + const offerMessage = this.direction === 'ltr' ? this.details.Description : this.details.Description_AR; + const offerSubject = this.direction === 'ltr' ? this.details.Title : this.details.Title_AR; + const options = { - message: this.stripHtml(this.details.Description), - subject: this.stripHtml(this.details.Title), + message: this.stripHtml(offerMessage), + subject: this.stripHtml(offerSubject), files: [this.details.Banner_Image] } this.socialSharing.shareWithOptions(options).then((result) => {