Only require zip code for US addresses

Since we only check for the US, only require for that country. Other countries have zip codes, but it seems better to do it this way than codify which countries do/do not have zip codes (in case local practices are not the same as international information). Fixes #825
This commit is contained in:
Matthew Taylor 2016-08-26 11:14:26 -04:00
parent 85630ffeb4
commit e7b0415a6b

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" />} />