Add own profile to profile dropdown

This commit is contained in:
Alex Gleason 2021-03-27 12:16:45 -05:00
parent fce37be8a4
commit 0ed3e0e3de
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 3 deletions

View File

@ -95,13 +95,13 @@ class ProfileDropdown extends React.PureComponent {
let menu = []; let menu = [];
menu.push({ text: this.renderAccount(account), to: `/@${account.get('acct')}` });
otherAccounts.forEach(account => { otherAccounts.forEach(account => {
menu.push({ text: this.renderAccount(account), action: this.handleSwitchAccount(account) }); menu.push({ text: this.renderAccount(account), action: this.handleSwitchAccount(account) });
}); });
if (otherAccounts.size > 0) { menu.push(null);
menu.push(null);
}
menu.push({ text: intl.formatMessage(messages.add), to: '/auth/sign_in' }); menu.push({ text: intl.formatMessage(messages.add), to: '/auth/sign_in' });
menu.push({ text: intl.formatMessage(messages.logout, { acct: account.get('acct') }), to: '/auth/sign_out', action: this.handleLogOut }); menu.push({ text: intl.formatMessage(messages.logout, { acct: account.get('acct') }), to: '/auth/sign_out', action: this.handleLogOut });