From: Thibaut Girka Date: Tue, 7 Jul 2020 15:24:23 +0000 (+0200) Subject: Fix being unable to add account notes X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=170b38c3f44ba01a9896a1c5392f6b8cab5998c9;p=mastodon.git Fix being unable to add account notes --- diff --git a/app/javascript/flavours/glitch/features/account/components/header.js b/app/javascript/flavours/glitch/features/account/components/header.js index 4ef8036fc..572f34fa0 100644 --- a/app/javascript/flavours/glitch/features/account/components/header.js +++ b/app/javascript/flavours/glitch/features/account/components/header.js @@ -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 }); }