Skip to content

Commit 5e4a4ef

Browse files
Merge pull request #5426 from topcoder-platform/tco-leaderboard-fix
Tco leaderboard fix
2 parents 2630cf3 + 47fdb9b commit 5e4a4ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ workflows:
290290
filters:
291291
branches:
292292
only:
293-
- free
293+
- tco-leaderboard-fix
294294
# This is beta env for production soft releases
295295
- "build-prod-beta":
296296
context : org-global

src/shared/containers/tco/Leaderboard/ChallengeHistoryModal/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { useEffect } from 'react';
22
import ChallengeHistoryModal from 'components/Leaderboard/ChallengeHistoryModal';
33
import PT from 'prop-types';
44
import actions from 'actions/leaderboard';
@@ -14,9 +14,9 @@ function ChallengeHistoryModalContainer({
1414
isCopilot,
1515
isAlgo,
1616
}) {
17-
if (!challenges && !loading) {
17+
useEffect(() => {
1818
getChallengesHistory(dataUrl, competitor);
19-
}
19+
}, [competitor]);
2020

2121
return (
2222
<ChallengeHistoryModal

0 commit comments

Comments
 (0)