diff --git a/modules b/modules index 4a3f855..a629840 160000 --- a/modules +++ b/modules @@ -1 +1 @@ -Subproject commit 4a3f855642005d44bdc2732e8bffdce75dec8a96 +Subproject commit a629840a7ca0aaed6a29e9cc67b42fa23d68f9ac diff --git a/src/screen/manage/StaffTimeInput.tsx b/src/screen/manage/StaffTimeInput.tsx index 0a8d201..4a319d6 100644 --- a/src/screen/manage/StaffTimeInput.tsx +++ b/src/screen/manage/StaffTimeInput.tsx @@ -8,7 +8,7 @@ interface StaffTimeProps { setStartTime: React.Dispatch>; endTime: string; setEndTime: React.Dispatch>; - setIsFocused: React.Dispatch>; + setIsFocused?: React.Dispatch>; } export default function StaffTimeInput({ @@ -23,7 +23,7 @@ export default function StaffTimeInput({ const [isFocused2, setIsFocused2] = useState(false); useEffect(() => { - if (isFocused1 || isFocused2) setIsFocused(true); + if (setIsFocused && (isFocused1 || isFocused2)) setIsFocused(true); else if (setIsFocused !== undefined) setIsFocused(false); }, [isFocused1, isFocused2]);