diff --git a/app/soapbox/components/sidebar_menu.js b/app/soapbox/components/sidebar_menu.js index 6a497a967..61f184523 100644 --- a/app/soapbox/components/sidebar_menu.js +++ b/app/soapbox/components/sidebar_menu.js @@ -103,6 +103,11 @@ class SidebarMenu extends ImmutablePureComponent { switcher: false, } + handleClose = () => { + this.setState({ switcher: false }); + this.props.onClose(); + } + handleSwitchAccount = account => { return e => { this.props.switchAccount(account); @@ -143,7 +148,7 @@ class SidebarMenu extends ImmutablePureComponent { } render() { - const { sidebarOpen, onClose, intl, account, onClickLogOut, donateUrl, isStaff, otherAccounts } = this.props; + const { sidebarOpen, intl, account, onClickLogOut, donateUrl, isStaff, otherAccounts } = this.props; const { switcher } = this.state; if (!account) return null; const acct = account.get('acct'); @@ -154,19 +159,19 @@ class SidebarMenu extends ImmutablePureComponent { return (