diff --git a/public/react/src/modules/courses/exercise/ExerciseNew.js b/public/react/src/modules/courses/exercise/ExerciseNew.js
index 0e1489c72..fe1b8f565 100644
--- a/public/react/src/modules/courses/exercise/ExerciseNew.js
+++ b/public/react/src/modules/courses/exercise/ExerciseNew.js
@@ -369,6 +369,7 @@ class ExerciceNew extends Component{
},
};
+ const { current_user } = this.props
const isAdmin = this.props.isAdmin()
const courseId=this.props.match.params.coursesId;
const exercise_id = this.props.match.params.Id
@@ -407,7 +408,7 @@ class ExerciceNew extends Component{
`}
diff --git a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js
index eb8143c03..cd3355082 100644
--- a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js
+++ b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js
@@ -509,7 +509,7 @@ class ExerciseReviewAndAnswer extends Component{
}=this.state
let isAdmin = this.props.isAdmin();
let isStudent =this.props.isStudent();
-
+ const { current_user } = this.props
console.log(data&&data.exercise.user_name)
return(
@@ -537,7 +537,7 @@ class ExerciseReviewAndAnswer extends Component{
/>
- {courseName}
+ {courseName}
>
{data && data.left_banner_name}
>