Skip to content
Snippets Groups Projects
Commit b9272a12 authored by Park Tae hyeon's avatar Park Tae hyeon
Browse files

Progress 수정

parent 685d28a1
No related branches found
No related tags found
1 merge request!43Feat/루틴
......@@ -22,7 +22,12 @@ function Progress({ currentVideo, times, endSignal, onendClick }) {
setRestTimes((prev) => [...prev, timeValue]);
setAllTimes((prev) => [...prev, { type: "Rest", value: timeValue, color: randomColor, id: Date.now() }]);
} else if (times.startsWith("Exercise:")) {
addExerciseRecord(currentVideo)
const tmp = new Date();
const { canceled, ...recordvideo } = {
...currentVideo,
date: tmp.toISOString().split("T")[0],
};
addExerciseRecord(recordvideo)
.then(() => {
setExerciseTimes((prev) => [...prev, timeValue]);
setAllTimes((prev) => [...prev, { type: "Exercise", value: timeValue, color: randomColor, id: Date.now() }]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment