fix web app crash when logging into a fresh account
parent
f0094fd143
commit
99d1b1ff6f
|
@ -314,7 +314,7 @@ class ComposeForm extends ImmutablePureComponent {
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
let disabledButton = isSubmitting || isUploading || isChangingUpload || (!text.trim().length && !anyMedia);
|
let disabledButton = isSubmitting || isUploading || isChangingUpload || (!text.trim().length && !anyMedia);
|
||||||
let nickname = this.props.account.get('identity');
|
let nickname = (this.props.account !== undefined) ? this.props.account.get('identity') : '';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='composer'>
|
<div className='composer'>
|
||||||
|
|
Loading…
Reference in New Issue