Deployed React app not working same as local version
0
I have a redux action which sends a request to update some data in the backend and on the response I dispatch another action to set this updated data. Heres the action: export const openLecture = lectureId => dispatch => { axios .put(`/api/lectures/open/${lectureId}`) .then(res => { if (res.data.lecture) { console.log(res.data.lecture); dispatch(getLecture(res.data.lecture._id)); } }) .catch(err => { console.log(err); }); }; Theres a component which takes this data from the redux state adn passes it to a child component. Heres the child component: class LectureHeader extends Component { constructor() { super(); this.state = {}; this.makeLectureLive = this.makeLectureLive.bind(this); this.closeLecture = this.clo