diff --git a/src/actions/index.js b/src/actions/index.js index 50f6fa0..e74406b 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -14,7 +14,7 @@ export const getUser = (username) => async (dispatch, getState) => { }; export const getRepos = (username) => async (dispatch, getState) => { - const response = await github.get(`/users/${username}/repos`); // axios request for repositories + const response = await github.get(`/users/${username}/repos`, {params: {sort: 'updated'}}); // axios request for repositories dispatch({ type: 'GET_REPOS',