File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/pages/leaderboard/subcomponents Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,7 @@ const OverallLeaderboard: React.FC = () => {
7979 headerName : 'XP' ,
8080 width : 414 /*154*/ ,
8181 sortable : true
82- } /*,
83- {
84- field: 'achievements',
85- suppressMovable: true,
86- sortable: false,
87- headerName: 'Achievements',
88- width: 260
8982 }
90- */
9183 ] ,
9284 [ ]
9385 ) ;
@@ -102,7 +94,7 @@ const OverallLeaderboard: React.FC = () => {
10294 const [ top3Leaderboard , setTop3Leaderboard ] = useState < LeaderboardRow [ ] > ( [ ] ) ;
10395
10496 useEffect ( ( ) => {
105- dispatch ( LeaderboardActions . getPaginatedLeaderboardXp ( 1 , pageSize ) ) ;
97+ dispatch ( LeaderboardActions . getOverallLeaderboardXP ( 1 , pageSize ) ) ;
10698 } , [ dispatch ] ) ;
10799
108100 const latestParamsRef = useRef < any > ( null ) ;
@@ -114,7 +106,7 @@ const OverallLeaderboard: React.FC = () => {
114106 const pageSize = endRow - startRow ;
115107 const page = startRow / pageSize + 1 ;
116108
117- dispatch ( LeaderboardActions . getPaginatedLeaderboardXp ( page , pageSize ) ) ;
109+ dispatch ( LeaderboardActions . getOverallLeaderboardXP ( page , pageSize ) ) ;
118110
119111 // Params stored to prevent re-rendering
120112 latestParamsRef . current = params ;
You can’t perform that action at this time.
0 commit comments