upd
This commit is contained in:
@@ -6,7 +6,6 @@ import useSidebarTabStore from "../stores/useSidebarStore";
|
||||
import TimeSelector from "./TimeSelector";
|
||||
import CloseIcon from "./icons/CloseIcon";
|
||||
import {
|
||||
addMinutes,
|
||||
eachMinuteOfInterval,
|
||||
format,
|
||||
isAfter,
|
||||
@@ -107,7 +106,8 @@ function SidebarTab2() {
|
||||
const formatTimes = times.map((time) => ({
|
||||
value: format(time, "HH:mm"),
|
||||
active:
|
||||
isAfter(time, addMinutes(new Date(), 30)) &&
|
||||
// isAfter(time, addMinutes(new Date(), 30)) &&
|
||||
isAfter(time, new Date()) &&
|
||||
scheduledSessions.filter(
|
||||
(scheduledSession) => scheduledSession.startAt === time.toISOString()
|
||||
).length < build.sessionLimit,
|
||||
|
||||
Reference in New Issue
Block a user