File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ function loadResultsInit(challengeId) {
248
248
* @return {Action }
249
249
*/
250
250
function loadResultsDone ( auth , challengeId , type ) {
251
- return getApi ( 'V2' , auth . tokenV2 )
251
+ return getApi ( 'V2' )
252
252
. fetch ( `/${ type } /challenges/result/${ challengeId } ` )
253
253
. then ( response => response . json ( ) )
254
254
. then ( response => ( {
@@ -273,7 +273,7 @@ function fetchCheckpointsInit() {}
273
273
*/
274
274
function fetchCheckpointsDone ( tokenV2 , challengeId ) {
275
275
const endpoint = `/design/challenges/checkpoint/${ challengeId } ` ;
276
- return getApi ( 'V2' , tokenV2 ) . fetch ( endpoint )
276
+ return getApi ( 'V2' ) . fetch ( endpoint )
277
277
. then ( ( response ) => {
278
278
if ( response . status !== 200 ) {
279
279
throw response . status ;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ function onFetchCheckpointsDone(state, action) {
173
173
loadingCheckpoints : false ,
174
174
} ;
175
175
}
176
- if ( state . details && state . details . legacyId === action . payload . challengeId ) {
176
+ if ( state . details && ` ${ state . details . legacyId } ` === ` ${ action . payload . challengeId } ` ) {
177
177
return {
178
178
...state ,
179
179
checkpoints : action . payload . checkpoints ,
You can’t perform that action at this time.
0 commit comments