mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 09:08:07 -05:00
safer referencing of teacher country
This commit is contained in:
parent
1408b540e1
commit
4bd813629f
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ class StudentRegistration extends React.Component {
|
||||||
onNextStep={this.handleAdvanceStep}
|
onNextStep={this.handleAdvanceStep}
|
||||||
/>
|
/>
|
||||||
<Steps.DemographicsStep
|
<Steps.DemographicsStep
|
||||||
countryName={this.state.classroom && this.state.classroom.educator.profile.country}
|
countryName={this.state.classroom && this.state.classroom.educator &&
|
||||||
|
this.state.classroom.educator.profile && this.state.classroom.educator.profile.country}
|
||||||
description={this.props.intl.formatMessage({
|
description={this.props.intl.formatMessage({
|
||||||
id: 'registration.studentPersonalStepDescription'
|
id: 'registration.studentPersonalStepDescription'
|
||||||
})}
|
})}
|
||||||
|
|
Loading…
Reference in a new issue