mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-29 08:20:21 +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 { connect } from 'react-redux';
|
||||||
import { authenticate, revoke } from 'components/accounts/actions';
|
import { authenticate, revoke } from 'components/accounts/actions';
|
||||||
|
|
||||||
export default connect(({accounts}) => ({
|
export default connect(({accounts, user}) => ({
|
||||||
accounts
|
accounts,
|
||||||
|
userLang: user.lang // this is to force re-render on lang change
|
||||||
}), {
|
}), {
|
||||||
switchAccount: authenticate,
|
switchAccount: authenticate,
|
||||||
removeAccount: revoke
|
removeAccount: revoke
|
||||||
|
Loading…
Reference in New Issue
Block a user