Skip to content

Commit ede622f

Browse files
committed
fix for issue #4435
1 parent 2906e84 commit ede622f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/reducers/challenge.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,15 @@ function onGetDetailsDone(state, action) {
6262
}
6363

6464
const details = action.payload;
65-
if (_.toString(details.id) !== state.loadingDetailsForChallengeId) {
65+
66+
// condition based on ROUTE used for Review Opportunities, change if needed
67+
const challengeId = state.loadingDetailsForChallengeId;
68+
let compareChallenge = details.id;
69+
if (challengeId.length >= 5 && challengeId.length <= 8) {
70+
compareChallenge = details.legacyId;
71+
}
72+
73+
if (_.toString(compareChallenge) !== challengeId) {
6674
return state;
6775
}
6876

0 commit comments

Comments
 (0)