Verify button disabled with no captcha

This commit is contained in:
Liam Cardenas 2017-12-20 11:12:14 -08:00
parent 33336256d0
commit 17be062b52

View file

@ -67,7 +67,10 @@ class UserEmailVerify extends React.PureComponent {
</p>
</div>
<div className="form-row-submit">
<Submit label={__("Verify")} disabled={isPending} />
<Submit
label={__("Verify")}
disabled={isPending || !this.state.code || !this.state.recaptcha}
/>
{cancelButton}
</div>
</Form>