From a1872798a5ee8dddf5e341d78c6b67747132fd6a Mon Sep 17 00:00:00 2001 From: feruz Date: Fri, 30 Jul 2021 21:30:22 +0300 Subject: [PATCH] fix default leaderboard duration --- src/redux/actions/userAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)