Commit bcdd100c by zhanghaozhe

领取页面bug

parent 626bbb43
......@@ -53,7 +53,7 @@ class GiveCourseAssistance extends Component {
let baseCode = decodeURIComponent(Base64.decode(this.state.code)).split(',')
this.setState({
baseCode: baseCode[0],
getBtnStatus: this.props.user.data.uid === baseCode[0] ? '2' : '1'
getBtnStatus: this.props.user.data.uid == baseCode[0] ? '2' : '1'
})
}
......@@ -61,7 +61,7 @@ class GiveCourseAssistance extends Component {
const {user} = this.props
if (nextProps.user.hasError !== user.hasError) {
this.setState({
getBtnStatus: nextProps.user.data.uid === this.state.baseCode ? '2' : '1'
getBtnStatus: nextProps.user.data.uid == this.state.baseCode ? '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