Skip to content

Commit 7daca4b

Browse files
authored
Merge pull request #4525 from nursoltan-s/issue-4519
fix issue 4519
2 parents 4c6c140 + 8efa80d commit 7daca4b

File tree

1 file changed

+23
-2
lines changed
  • src/shared/components/ProfilePage/Stats/SubTrackChallengeView

1 file changed

+23
-2
lines changed

src/shared/components/ProfilePage/Stats/SubTrackChallengeView/index.jsx

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,20 @@ class SubTrackChallengeView extends React.Component {
137137
loadSRM,
138138
loadingMarathonUUID,
139139
loadMarathon,
140+
userId,
140141
} = this.props;
141142

142143
if (track === 'DEVELOP' || track === 'DESIGN') {
143144
if (!loadingSubTrackChallengesUUID) {
144-
loadSubtrackChallenges(handle, auth.tokenV3, track, subTrack, 0, CHALLENGE_PER_PAGE, true);
145+
loadSubtrackChallenges(
146+
handle,
147+
auth.tokenV3,
148+
track, subTrack,
149+
0,
150+
CHALLENGE_PER_PAGE,
151+
true,
152+
userId,
153+
);
145154
}
146155
} else if (track === 'DATA_SCIENCE') {
147156
if (subTrack === 'SRM') {
@@ -168,6 +177,7 @@ class SubTrackChallengeView extends React.Component {
168177
loadSRM,
169178
loadingMarathonUUID,
170179
loadMarathon,
180+
userId,
171181
} = this.props;
172182

173183
const {
@@ -184,6 +194,7 @@ class SubTrackChallengeView extends React.Component {
184194
pageNum + 1,
185195
CHALLENGE_PER_PAGE,
186196
false,
197+
userId,
187198
);
188199
this.setState({ pageNum: pageNum + 1 });
189200
}
@@ -400,7 +411,16 @@ function mapDispatchToProps(dispatch) {
400411
const action = actions.members;
401412

402413
return {
403-
loadSubtrackChallenges: (handle, tokenV3, track, subTrack, pageNum, pageSize, refresh) => {
414+
loadSubtrackChallenges: (
415+
handle,
416+
tokenV3,
417+
track,
418+
subTrack,
419+
pageNum,
420+
pageSize,
421+
refresh,
422+
userId,
423+
) => {
404424
const uuid = shortId();
405425
dispatch(action.getSubtrackChallengesInit(handle, uuid));
406426
dispatch(action.getSubtrackChallengesDone(
@@ -412,6 +432,7 @@ function mapDispatchToProps(dispatch) {
412432
pageNum,
413433
pageSize,
414434
refresh,
435+
userId,
415436
));
416437
},
417438
loadSRM: (handle, tokenV3, pageNum, pageSize, refresh) => {

0 commit comments

Comments
 (0)