Commit 8663d36c authored by Adrià Labay's avatar Adrià Labay
Browse files

remove logs

parent fedf0f00
......@@ -26,14 +26,9 @@ class ExamContent extends React.Component {
if (prevProps.examID !== examID && examID !== this.state.examID) {
this.updateExam(examID)
}
// if (prevProps.graderID !== this.props.graderID) {
// this.setState({graderID: this.props.graderID})
// }
}
updateExam = (examID) => {
console.log(`exam content ${examID}`)
this.setState({ examID })
this.props.selectExam(examID)
}
......
......@@ -124,7 +124,6 @@ class NavBar extends React.Component {
componentDidUpdate = (prevProps, prevState) => {
if (prevProps.examID !== this.props.examID) {
this.setState({examID: this.props.examID})
console.log(`exam in navbar ${this.props.examID}`)
}
}
......@@ -173,7 +172,6 @@ class NavBar extends React.Component {
render () {
const selectedExam = this.state.examList.find(exam => exam.id === this.state.examID)
console.log(`exam in navbar render ${selectedExam}`)
const predicateNoExam = [selectedExam === null || selectedExam === undefined,
'No exam selected.']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment