From 1aa290f62706a3c28f1b10064d1d1db740efd79a Mon Sep 17 00:00:00 2001 From: umasoodch Date: Wed, 26 Feb 2020 17:19:44 +0300 Subject: [PATCH] fixed attendance issue --- Mohem/src/app/my-team/details/details.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mohem/src/app/my-team/details/details.component.ts b/Mohem/src/app/my-team/details/details.component.ts index eabe6e86..385f97c9 100644 --- a/Mohem/src/app/my-team/details/details.component.ts +++ b/Mohem/src/app/my-team/details/details.component.ts @@ -126,6 +126,10 @@ export class DetailsComponent implements OnInit { } initAttendance() { + this.data = {}; + this.currentMonthName = this.getMonthName(new Date().getMonth() + 1); + this.currentYear = new Date().getFullYear(); + this.currentDate = new Date(); this.showData = false; this.nextMonth = new Date().getMonth() + 2; this.preMonth = new Date().getMonth() - 2;