Commit 926898ba by zhanghaozhe

Merge branch 'give-courses'

parents a819edcb c428b2b9
...@@ -60,6 +60,8 @@ class GiveCourseAssistance extends Component { ...@@ -60,6 +60,8 @@ class GiveCourseAssistance extends Component {
componentWillUpdate(nextProps) { componentWillUpdate(nextProps) {
const {user} = this.props const {user} = this.props
if (nextProps.user.hasError !== user.hasError) { if (nextProps.user.hasError !== user.hasError) {
console.log(this.state.baseCode[0])
console.log(nextProps.user.data.uid)
this.setState({ this.setState({
getBtnStatus: nextProps.user.data.uid === this.state.baseCode[0] ? '2' : '1' getBtnStatus: nextProps.user.data.uid === this.state.baseCode[0] ? '2' : '1'
}) })
......
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