We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2906e84 commit ede622fCopy full SHA for ede622f
src/reducers/challenge.js
@@ -62,7 +62,15 @@ function onGetDetailsDone(state, action) {
62
}
63
64
const details = action.payload;
65
- if (_.toString(details.id) !== state.loadingDetailsForChallengeId) {
+
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) {
74
return state;
75
76
0 commit comments