about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-03 02:13:28 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-03 02:13:28 -0500
commit99d1b1ff6f482df13d6917d5340ec28baaf76302 (patch)
tree20bbd707f4a4cbce61f9dfce5ddaafce923f7ed1
parentf0094fd14389622ed0bc8a5ca3f0ef9e6f9c4f17 (diff)
fix web app crash when logging into a fresh account
-rw-r--r--app/javascript/flavours/glitch/features/compose/components/compose_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.js b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
index ec1f9aa7c..cfe44c14c 100644
--- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js
+++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
@@ -314,7 +314,7 @@ class ComposeForm extends ImmutablePureComponent {
     } = this.props;
 
     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 (
       <div className='composer'>