diff --git a/exercises-ui/src/components/Exercise.js b/exercises-ui/src/components/Exercise.js
index 2537201..b215a44 100644
--- a/exercises-ui/src/components/Exercise.js
+++ b/exercises-ui/src/components/Exercise.js
@@ -10,7 +10,7 @@ function Exercise({ exercise, onDelete, onEdit }) {
{exercise.unit} |
{exercise.date} |
- onEdit(exercise._id)} />
+ onEdit(exercise)} />
|
onDelete(exercise._id)} />
diff --git a/exercises-ui/src/components/ExerciseList.js b/exercises-ui/src/components/ExerciseList.js
index 1f9359d..cd01cc9 100644
--- a/exercises-ui/src/components/ExerciseList.js
+++ b/exercises-ui/src/components/ExerciseList.js
@@ -17,7 +17,12 @@ function ExerciseList({ exercises, onDelete, onEdit }) {
{exercises.map((exercise, i) => (
-
+
))}
|