diff options
Diffstat (limited to 'app/assets/javascripts/components/reducers/meta.jsx')
-rw-r--r-- | app/assets/javascripts/components/reducers/meta.jsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/reducers/meta.jsx b/app/assets/javascripts/components/reducers/meta.jsx index 71a14dbd3..c7222c60b 100644 --- a/app/assets/javascripts/components/reducers/meta.jsx +++ b/app/assets/javascripts/components/reducers/meta.jsx @@ -1,5 +1,6 @@ -import { ACCESS_TOKEN_SET } from '../actions/meta'; -import Immutable from 'immutable'; +import { ACCESS_TOKEN_SET } from '../actions/meta'; +import { ACCOUNT_SET_SELF } from '../actions/accounts'; +import Immutable from 'immutable'; const initialState = Immutable.Map(); @@ -7,6 +8,8 @@ export default function meta(state = initialState, action) { switch(action.type) { case ACCESS_TOKEN_SET: return state.set('access_token', action.token); + case ACCOUNT_SET_SELF: + return state.set('me', action.account.id); default: return state; } |