Update weekStart to dynamically use the current date instead of a fixed one in Staff Playtime component
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user