File tree 2 files changed +4
-4
lines changed
src/shared/containers/tco/Leaderboard/ChallengeHistoryModal
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ workflows:
290
290
filters :
291
291
branches :
292
292
only :
293
- - free
293
+ - tco-leaderboard-fix
294
294
# This is beta env for production soft releases
295
295
- " build-prod-beta " :
296
296
context : org-global
Original file line number Diff line number Diff line change 1
- import React from 'react' ;
1
+ import React , { useEffect } from 'react' ;
2
2
import ChallengeHistoryModal from 'components/Leaderboard/ChallengeHistoryModal' ;
3
3
import PT from 'prop-types' ;
4
4
import actions from 'actions/leaderboard' ;
@@ -14,9 +14,9 @@ function ChallengeHistoryModalContainer({
14
14
isCopilot,
15
15
isAlgo,
16
16
} ) {
17
- if ( ! challenges && ! loading ) {
17
+ useEffect ( ( ) => {
18
18
getChallengesHistory ( dataUrl , competitor ) ;
19
- }
19
+ } , [ competitor ] ) ;
20
20
21
21
return (
22
22
< ChallengeHistoryModal
You can’t perform that action at this time.
0 commit comments