Merge pull request #896 from mewtaylor/issue/gh-825-zip

Fix GH-825: Only require zip code for US addresses
This commit is contained in:
Matthew Taylor 2016-08-29 13:14:22 -04:00 committed by GitHub
commit ee088e6384

View file

@ -745,7 +745,7 @@ module.exports = {
id: 'registration.validationMaxLength' id: 'registration.validationMaxLength'
}) })
}} }}
required /> required={(this.state.countryChoice === 'us')} />
<GeneralError name="all" /> <GeneralError name="all" />
<NextStepButton waiting={this.props.waiting || this.state.waiting} <NextStepButton waiting={this.props.waiting || this.state.waiting}
text={<intl.FormattedMessage id="registration.nextStep" />} /> text={<intl.FormattedMessage id="registration.nextStep" />} />