fixed arabic offer text issue

enad-Q1
umasoodch 4 years ago
parent a1aadd14be
commit d7d46a83f5

@ -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) => {

Loading…
Cancel
Save