Skip to content

Commit

Permalink
fix_api(fe): fixed bug in manager dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiaHdezPerez authored and Joel0347 committed Feb 3, 2025
1 parent dd45f1d commit 6e21522
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export class IndexComponent implements OnInit, OnDestroy {
getCompanySpecificData(companyId: number): void {
this.httpCenter.getCenterById(companyId).subscribe(centerDetails => {
const currentYear = new Date().getFullYear();
const startDate = `${currentYear}-01-01`;
const currentMonth = new Date().getMonth() + 1;
const startDate = `${currentYear}-${currentMonth}-01`;
const endDate = `${currentYear}-12-31`;
this.httpCenter.getRegister(companyId, startDate, endDate).subscribe(data => {
this.topConsumingCenters = [{
Expand Down

0 comments on commit 6e21522

Please sign in to comment.