Skip to content
Snippets Groups Projects
Commit bf051331 authored by Min Dong Hyeun's avatar Min Dong Hyeun
Browse files
parents 4b81d427 21ed6470
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment