fixed leaderboard refresh issue

This commit is contained in:
noumantahir 2022-05-21 12:38:17 +05:00
parent c8d6ecd5b3
commit 95df3848a5

View File

@ -8,7 +8,7 @@ import { connect } from 'react-redux';
import { getLeaderboard } from '../../../providers/ecency/ecency'; import { getLeaderboard } from '../../../providers/ecency/ecency';
// Constants // Constants
import ROUTES from '../../../constants/routeNames'; import FILTER_OPTIONS, { VALUE } from '../../../constants/options/leaderboard';
// Component // Component
import LeaderboardView from '../view/leaderboardView'; import LeaderboardView from '../view/leaderboardView';
@ -50,6 +50,7 @@ class LeaderboardContainer extends PureComponent {
if (index === undefined) { if (index === undefined) {
index = selectedIndex; index = selectedIndex;
selectedFilter = FILTER_OPTIONS[selectedIndex];
} }
let users; let users;