Skip to content

Commit 2fcebcd

Browse files
committed
feat(client): 스케쥴박스 액티브 조건 변경
1 parent 5781ce0 commit 2fcebcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/user/src/components/main/ScheduleBox/ScheduleBoxItem/ScheduleBoxItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface Props {
1818
}
1919

2020
const ScheduleBoxItem = ({ plan, date, startTime, endTime }: Props) => {
21-
const active = dayjs().isBetween(startTime, endTime);
21+
const active = !dayjs().isBetween(startTime, endTime) && dayjs().isBefore(startTime);
2222

2323
return (
2424
<StyledScheduleBoxItem active={active}>

0 commit comments

Comments
 (0)