From d7d46a83f5346544e8f718b08a0700f7593b9295 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Tue, 7 Sep 2021 12:47:59 +0300 Subject: [PATCH] fixed arabic offer text issue --- .../offer-details/offer-details.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) => {