Skip to content

Commit

Permalink
fix current pair indication
Browse files Browse the repository at this point in the history
  • Loading branch information
Markusplay committed Nov 26, 2024
1 parent e6e8354 commit a5cb005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils/generateScheduleMatrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const generateScheduleMatrix = <T extends Pair,>(weekSchedule: WeekSchedu
let newCell: ScheduleMatrixCell | ScheduleMatrixCell[] = {
...pair,
currentPair:
activePair !== -1 && currentDay === yIndex && activePair === xIndex,
activePair !== -1 && currentDay === yIndex + 1 && activePair === xIndex,
};

if (cell) {
Expand Down

0 comments on commit a5cb005

Please sign in to comment.