Skip to content

Commit 9926c24

Browse files
[Arunachalam] Fix bug in not accepting first slot
1 parent 48eaa7b commit 9926c24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/App.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export function PickTime(props: Props) {
6666
for (const timing of props.scheduledTimings) {
6767
const startTimeId: number = MAP_TIME_TO_SLOT_ID[timing[0]]
6868
const endTimeId: number = MAP_TIME_TO_SLOT_ID[timing[1]]
69-
if (!startTimeId || !endTimeId) {
69+
if (
70+
typeof startTimeId == "undefined" ||
71+
typeof endTimeId == "undefined"
72+
) {
7073
props?.onError('Invalid timings provided', timing)
7174
break
7275
}

0 commit comments

Comments
 (0)