Last active
October 21, 2016 19:52
-
-
Save bnhansn/b4640d9adc5e8daa83ed4e7df810aad8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { fetchUserRooms } from './rooms'; | |
| // ... | |
| function setCurrentUser(dispatch, response) { | |
| localStorage.setItem('token', JSON.stringify(response.meta.token)); | |
| dispatch({ type: 'AUTHENTICATION_SUCCESS', response }); | |
| dispatch(fetchUserRooms(response.data.id)); // new line | |
| } | |
| // ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment