diff --git a/src/redux/actions/userAction.js b/src/redux/actions/userAction.js index 29e87249a..7fdd8d361 100644 --- a/src/redux/actions/userAction.js +++ b/src/redux/actions/userAction.js @@ -90,7 +90,7 @@ export const unfollowUserFail = (error, data, failToastText) => { }; // Fetch Leaderboard -export const fetchLeaderboard = (duration) => { +export const fetchLeaderboard = (duration = 'day') => { return (dispatch) => { dispatch({ type: FETCH_LEADERBOARD }); getLeaderboard(duration)