diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index cf28a498e..9a35a0f81 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -52,9 +52,17 @@ class CoursesBanner extends Component { componentDidMount() { this.onloadupdatabanner() - this.setState({ - user_phone_binded :this.props.current_user.user_phone_binded, - }) + try { + if(this.props.current_user!==undefined){ + this.setState({ + user_phone_binded :this.props.current_user.user_phone_binded, + }) + } + }catch (e) { + console.log("CoursesBanner 60") + console.log(e) + } + } onloadupdatabanner=()=>{ this.updatabanner()