We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48eaa7b commit 9926c24Copy full SHA for 9926c24
src/components/App.tsx
@@ -66,7 +66,10 @@ export function PickTime(props: Props) {
66
for (const timing of props.scheduledTimings) {
67
const startTimeId: number = MAP_TIME_TO_SLOT_ID[timing[0]]
68
const endTimeId: number = MAP_TIME_TO_SLOT_ID[timing[1]]
69
- if (!startTimeId || !endTimeId) {
+ if (
70
+ typeof startTimeId == "undefined" ||
71
+ typeof endTimeId == "undefined"
72
+ ) {
73
props?.onError('Invalid timings provided', timing)
74
break
75
}
0 commit comments