From e7b0415a6b7a96e13281858a5139570599f97f87 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Fri, 26 Aug 2016 11:14:26 -0400 Subject: [PATCH] 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 --- src/components/registration/steps.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/registration/steps.jsx b/src/components/registration/steps.jsx index 854f5b785..3df19db70 100644 --- a/src/components/registration/steps.jsx +++ b/src/components/registration/steps.jsx @@ -745,7 +745,7 @@ module.exports = { id: 'registration.validationMaxLength' }) }} - required /> + required={(this.state.countryChoice === 'us')} /> } />