]> cat aescling's git repositories - mastodon.git/commitdiff
Fix being unable to add account notes
authorThibaut Girka <thib@sitedethib.com>
Tue, 7 Jul 2020 15:24:23 +0000 (17:24 +0200)
committerThibG <thib@sitedethib.com>
Tue, 7 Jul 2020 17:25:42 +0000 (19:25 +0200)
app/javascript/flavours/glitch/features/account/components/header.js

index 4ef8036fc99ff4605ef2235a383d81b85dafc8a3..572f34fa02b82aa1130125b5ea4943090784df24 100644 (file)
@@ -176,7 +176,7 @@ class Header extends ImmutablePureComponent {
       menu.push(null);
     }
 
-    if (accountNote === null) {
+    if (accountNote === null || accountNote === '') {
       menu.push({ text: intl.formatMessage(messages.add_account_note, { name: account.get('username') }), action: this.props.onEditAccountNote });
     }