diff --git a/src/components/registration/steps.jsx b/src/components/registration/steps.jsx index f6327f380..d461d3fb8 100644 --- a/src/components/registration/steps.jsx +++ b/src/components/registration/steps.jsx @@ -27,6 +27,17 @@ var Tooltip = require('../../components/tooltip/tooltip.jsx'); require('./steps.scss'); var DEFAULT_COUNTRY = 'us'; +var COUNTRY_OPTIONS = countryData.countryOptions.concat({ + label: , + disabled: true, + selected: true +}).sort(function (a, b) { + if (a.disabled) return -1; + if (b.disabled) return 1; + if (a.value === DEFAULT_COUNTRY) return -1; + if (b.value === DEFAULT_COUNTRY) return 1; + return 0; +}.bind(this)); var NextStepButton = React.createClass({ getDefaultProps: function () { @@ -253,7 +264,6 @@ module.exports = { DemographicsStep: intl.injectIntl(React.createClass({ getDefaultProps: function () { return { - defaultCountry: DEFAULT_COUNTRY, waiting: false, description: null }; @@ -282,17 +292,6 @@ module.exports = { }, render: function () { var formatMessage = this.props.intl.formatMessage; - var countryOptions = countryData.countryOptions.concat({ - label: formatMessage({id: 'teacherRegistration.selectCountry'}), - disabled: true, - selected: true - }).sort(function (a, b) { - if (a.disabled) return -1; - if (b.disabled) return 1; - if (a.value === this.props.defaultCountry) return -1; - if (b.value === this.props.defaultCountry) return 1; - return 0; - }.bind(this)); return (

@@ -334,7 +333,7 @@ module.exports = {