fix default leaderboard duration

This commit is contained in:
feruz 2021-07-30 21:30:22 +03:00
parent a718561ffe
commit a1872798a5

View File

@ -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)