From 3b830772ab6af3fe84f5d807b7e282635ff7a21f Mon Sep 17 00:00:00 2001 From: umasoodch Date: Mon, 6 Sep 2021 12:50:59 +0300 Subject: [PATCH] fixed toFixed issue --- Mohem/src/app/home/home.page.ts | 2 +- .../offersdiscount/offer-details/offer-details.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mohem/src/app/home/home.page.ts b/Mohem/src/app/home/home.page.ts index 2f6e766c..2e63be2b 100644 --- a/Mohem/src/app/home/home.page.ts +++ b/Mohem/src/app/home/home.page.ts @@ -737,7 +737,7 @@ export class HomePage implements OnInit { this.accrualBalancesList = result.GetAccrualBalancesList; for (const accrualBalance of result.GetAccrualBalancesList) { if (accrualBalance.ACCURAL_PLAN_NAME === 'HMG Annual Vacation Accrual Plan') { - this.statsButtons[3].statsValue = Number(accrualBalance.ACCRUAL_NET_ENTITLEMENT.toFixed(2)); + this.statsButtons[3].statsValue = accrualBalance.ACCRUAL_NET_ENTITLEMENT === null ? 0 : Number(accrualBalance.ACCRUAL_NET_ENTITLEMENT.toFixed(2)); this.common.sharedService.setSharedData(accrualBalance, 'leaveAccrualBalance'); this.common.sharedService.setSharedData(request, 'leaveAccrualBalanceDate'); this.common.sharedService.setSharedData(this.accrualBalancesList, 'tickitsbalance'); 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 5021dc79..e745209a 100644 --- a/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts +++ b/Mohem/src/app/offersdiscount/offer-details/offer-details.component.ts @@ -38,8 +38,8 @@ export class OfferDetailsComponent implements OnInit { console.log(this.details); const options = { message: this.stripHtml(this.details.Description), - // subject: this.stripHtml(this.details.Title), - files: ['https://www.geo.tv/assets/uploads/updates/2021-09-05/368882_8709303_updates.jpg'] + subject: this.stripHtml(this.details.Title), + files: [this.details.Banner_Image] } this.socialSharing.shareWithOptions(options).then((result) => { console.log(result);