From 0ed3e0e3de07c4f08bc65c6dfbc133570ac2f9ee Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 27 Mar 2021 12:16:45 -0500 Subject: [PATCH] Add own profile to profile dropdown --- app/soapbox/features/ui/components/profile_dropdown.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/soapbox/features/ui/components/profile_dropdown.js b/app/soapbox/features/ui/components/profile_dropdown.js index 7d644591a..2b3f7df7f 100644 --- a/app/soapbox/features/ui/components/profile_dropdown.js +++ b/app/soapbox/features/ui/components/profile_dropdown.js @@ -95,13 +95,13 @@ class ProfileDropdown extends React.PureComponent { let menu = []; + menu.push({ text: this.renderAccount(account), to: `/@${account.get('acct')}` }); + otherAccounts.forEach(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.logout, { acct: account.get('acct') }), to: '/auth/sign_out', action: this.handleLogOut });