#48: fix choose account dropdown not updated on language change

This commit is contained in:
SleepWalker 2016-11-19 12:19:15 +02:00
parent fcaef1aa61
commit 0360c6ec0c

View File

@ -158,8 +158,9 @@ export class AccountSwitcher extends Component {
import { connect } from 'react-redux';
import { authenticate, revoke } from 'components/accounts/actions';
export default connect(({accounts}) => ({
accounts
export default connect(({accounts, user}) => ({
accounts,
userLang: user.lang // this is to force re-render on lang change
}), {
switchAccount: authenticate,
removeAccount: revoke