fixed toFixed issue

MOHEMM-SFH-COLORS
umasoodch 4 years ago
parent a2e99b0829
commit 3b830772ab

@ -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');

@ -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);

Loading…
Cancel
Save