Skip to content

Commit 4ed33b1

Browse files
committed
updated active tab
1 parent c4cdead commit 4ed33b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hooks/useSession.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ export const useSession = ({ allSchedules }: { allSchedules: Schedule[] }) => {
101101
}, [handleSessionsToggle])
102102

103103
const selectTabByday = useCallback(() => {
104-
if (moment().format('DD') === '06') setActiveTab(1)
105-
if (moment().format('DD') === '07') setActiveTab(2)
104+
if (moment().format('DD') === '06') setActiveTab(0)
105+
if (moment().format('DD') === '07') setActiveTab(1)
106106
if (moment().format('DD') === '08') setActiveTab(2)
107107
}, [])
108108

0 commit comments

Comments
 (0)