Update weekStart to dynamically use the current date instead of a fixed one in Staff Playtime component
This commit is contained in:
parent
8b4f1c2785
commit
6292d0cacf
|
|
@ -19,7 +19,7 @@ export class StaffPtComponent implements OnInit {
|
|||
|
||||
staffPt = signal<StaffPlaytime[]>([]);
|
||||
|
||||
weekStart = signal<Date>(this.getStartOfWeek(new Date('2024-01-01')));
|
||||
weekStart = signal<Date>(this.getStartOfWeek(new Date()));
|
||||
weekEnd = computed(() => this.getEndOfWeek(this.weekStart()));
|
||||
|
||||
todayStart = signal<Date>(this.startOfDay(new Date()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user