From a5cb005d40c0c75e14fad2f9a4d2c5cde05fd943 Mon Sep 17 00:00:00 2001 From: Mykhailo Shylo Date: Tue, 26 Nov 2024 17:03:25 +0200 Subject: [PATCH] fix current pair indication --- src/common/utils/generateScheduleMatrix.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/generateScheduleMatrix.ts b/src/common/utils/generateScheduleMatrix.ts index b67759a..543ab6d 100644 --- a/src/common/utils/generateScheduleMatrix.ts +++ b/src/common/utils/generateScheduleMatrix.ts @@ -32,7 +32,7 @@ export const generateScheduleMatrix = (weekSchedule: WeekSchedu let newCell: ScheduleMatrixCell | ScheduleMatrixCell[] = { ...pair, currentPair: - activePair !== -1 && currentDay === yIndex && activePair === xIndex, + activePair !== -1 && currentDay === yIndex + 1 && activePair === xIndex, }; if (cell) {