diff --git a/src/components/RegistrationPage.js b/src/components/RegistrationPage.js index cf963dd..9af0651 100644 --- a/src/components/RegistrationPage.js +++ b/src/components/RegistrationPage.js @@ -42,7 +42,6 @@ class RegistrationPage extends React.Component { render() { - console.log(this.props.topic) let topicsList = this.props.topics.map((topic, idx) => ( }> diff --git a/src/components/TopicListPage.js b/src/components/TopicListPage.js index 8723522..306182b 100644 --- a/src/components/TopicListPage.js +++ b/src/components/TopicListPage.js @@ -36,8 +36,7 @@ class TopicListPage extends React.Component { try { topic.active = !topic.active const updatedTopics = this.props.topics.map(topic2 => { return topic2.id === topic.id ? topic : topic2 }) - const response = await topicService.update(topic) - console.log('Response: ', response) + await topicService.update(topic) this.props.updateTopics(updatedTopics) this.props.setSuccess('Topic update submitted succesfully!') setTimeout(() => { diff --git a/src/services/login.js b/src/services/login.js index db1f42a..f544a9b 100644 --- a/src/services/login.js +++ b/src/services/login.js @@ -4,8 +4,6 @@ import { BACKEND_URI } from '../utils/config' const url = `${BACKEND_URI}/api/login` const login = async (credentials) => { - console.log('logging to', url) - const response = await axios.post(url, credentials) return response.data } diff --git a/src/services/topic.js b/src/services/topic.js index 8239958..46b9020 100644 --- a/src/services/topic.js +++ b/src/services/topic.js @@ -23,7 +23,6 @@ const getAll = async () => { const getAllActive = async () => { const response = await axios.get(url + '/active') - console.log(response) return response.data.topics }