mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 23:40:28 +05:30
#48: fix choose account dropdown not updated on language change
This commit is contained in:
parent
fcaef1aa61
commit
0360c6ec0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user