Improved the render in MainSignUpWidget (Issue #576). (#683)

* replace spaces for underscores in edit custom fields

* Create function getCustomFieldParamName

* Improved the render in MainSignUpWidget
This commit is contained in:
LautaroCesso 2019-12-27 14:46:33 -03:00 committed by GitHub
parent 843bd13281
commit 38c6295a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class MainSignUpWidget extends React.Component {
this.state = {
loading: false,
email: null,
customFields: []
customFields: null
};
}
@ -39,6 +39,7 @@ class MainSignUpWidget extends React.Component {
}
render() {
if(!this.state.customFields) return null;
return (
<Widget className={this.getClass()}>
<Header title={i18n('SIGN_UP')} description={i18n('SIGN_UP_VIEW_DESCRIPTION')} />