Fix being unable to add account notes

lolsob-rspec
Thibaut Girka 2020-07-07 17:24:23 +02:00 committed by ThibG
parent 1144767ca8
commit 22c04b63cb
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class Header extends ImmutablePureComponent {
menu.push(null); 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 }); menu.push({ text: intl.formatMessage(messages.add_account_note, { name: account.get('username') }), action: this.props.onEditAccountNote });
} }