File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,18 @@ function onGetDetailsDone(state, action) {
76
76
// condition based on ROUTE used for Review Opportunities, change if needed
77
77
const challengeId = state . loadingDetailsForChallengeId ;
78
78
let compareChallenge = details . id ;
79
+ // to be compatible with old mm challenge, we should get legacyId from roundId firstly,
80
+ // like roundId '19038' to legacyId '30233148'
81
+ let isOldMmChallenge = false ;
79
82
if ( challengeId . length >= 5 && challengeId . length <= 8 ) {
80
83
compareChallenge = details . legacyId ;
84
+
85
+ if ( challengeId !== _ . toString ( compareChallenge ) ) {
86
+ isOldMmChallenge = true ;
87
+ }
81
88
}
82
89
83
- if ( _ . toString ( compareChallenge ) !== challengeId ) {
90
+ if ( ! isOldMmChallenge && _ . toString ( compareChallenge ) !== challengeId ) {
84
91
return state ;
85
92
}
86
93
You can’t perform that action at this time.
0 commit comments