Skip to content

Commit de0b0d5

Browse files
Pass legacyid to v2 results call
1 parent 57af725 commit de0b0d5

File tree

1 file changed

+3
-0
lines changed
  • src/shared/containers/challenge-detail

1 file changed

+3
-0
lines changed

src/shared/containers/challenge-detail/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import {
3838
COMPETITION_TRACKS,
3939
COMPETITION_TRACKS_V3,
4040
SUBTRACKS,
41+
CHALLENGE_STATUS,
4142
} from 'utils/tc';
4243
import { config, MetaTags } from 'topcoder-react-utils';
4344
import { actions } from 'topcoder-react-lib';
@@ -850,6 +851,8 @@ const mapDispatchToProps = (dispatch) => {
850851
} else dispatch(a.dropCheckpoints());
851852
} else dispatch(a.dropCheckpoints());
852853
if (ch.status === CHALLENGE_STATUS.COMPLETED) {
854+
dispatch(a.loadResultsInit(ch.legacyId));
855+
dispatch(a.loadResultsDone(tokens, ch.legacyId, ch.track.toLowerCase()));
853856
} else dispatch(a.dropResults());
854857
return res;
855858
});

0 commit comments

Comments
 (0)