Fix being unable to add account notes

master
Thibaut Girka 4 years ago committed by ThibG
parent a3ac322ded
commit 170b38c3f4
  1. 2
      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 });
}

Loading…
Cancel
Save