diff --git a/react-whenMeet/src/routes/UserTimeInfo.js b/react-whenMeet/src/routes/UserTimeInfo.js index 67fa4359afd315419fa27b738d200ed69192cc92..85911aaee9c31545ca0407493d7b36b9fc41d57c 100644 --- a/react-whenMeet/src/routes/UserTimeInfo.js +++ b/react-whenMeet/src/routes/UserTimeInfo.js @@ -7,6 +7,7 @@ import { useLocation, useNavigate, useParams } from "react-router-dom"; function UserTimeInfo() { const location = useLocation(); + const navigate = useNavigate(); const [state, setState] = useState(true); const [availableSchedules, setAvailableSchedules] = useState(location.state.schedules); @@ -119,6 +120,8 @@ function UserTimeInfo() { schedules: compressedData }); alert("�쒖텧 �꾨즺"); + navigate(`/result/${id}`); + } catch (error) { if (error.response) { @@ -145,6 +148,8 @@ function UserTimeInfo() { const response = await axios.post(`http://localhost:3000/meetings/${id}/my/schedules/bulk`,{ schedules: compressedData }); + alert("�쒖텧 �꾨즺"); + navigate(`/result/${id}`); } catch (error) { if (error.response) {