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;