Merge pull request #2222 from vale981/patch-3

Fix const assignment.
This commit is contained in:
Sacha Greif 2019-03-04 08:19:24 +09:00 committed by GitHub
commit 225ff7f350
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,10 +49,11 @@ export class AccountsField extends PureComponent {
type = 'text',
onChange,
required = false,
className = 'field',
defaultValue = '',
message,
} = this.props;
let { className = 'field' } = this.state;
const { mount = true } = this.state;
if (type == 'notice') {
return <div className={ className }>{ label }</div>;