@@ -266,29 +266,34 @@ function fetchCheckpointsInit() {}
266
266
* @param {String } challengeId Challenge ID.
267
267
*/
268
268
function fetchCheckpointsDone ( tokenV2 , challengeId ) {
269
- const endpoint = `/design/challenges/checkpoint/${ challengeId } ` ;
270
- return getApi ( 'V2' ) . fetch ( endpoint )
271
- . then ( ( response ) => {
272
- if ( response . status !== 200 ) {
273
- throw response . status ;
274
- } else {
275
- return response . json ( ) ;
276
- }
277
- } )
278
- . then ( ( response ) => {
279
- // Expanded key is used for UI expand/collapse.
280
- response . checkpointResults . forEach ( ( checkpoint , index ) => {
281
- response . checkpointResults [ index ] . expanded = false ;
282
- } ) ;
283
- return {
284
- challengeId : String ( challengeId ) ,
285
- checkpoints : response ,
286
- } ;
287
- } )
288
- . catch ( error => ( {
289
- error,
290
- challengeId : String ( challengeId ) ,
291
- } ) ) ;
269
+ // const endpoint = `/design/challenges/checkpoint/${challengeId}`;
270
+ // return getApi('V2').fetch(endpoint)
271
+ // .then((response) => {
272
+ // if (response.status !== 200) {
273
+ // throw response.status;
274
+ // } else {
275
+ // return response.json();
276
+ // }
277
+ // })
278
+ // .then((response) => {
279
+ // // Expanded key is used for UI expand/collapse.
280
+ // response.checkpointResults.forEach((checkpoint, index) => {
281
+ // response.checkpointResults[index].expanded = false;
282
+ // });
283
+ // return {
284
+ // challengeId: String(challengeId),
285
+ // checkpoints: response,
286
+ // };
287
+ // })
288
+ // .catch(error => ({
289
+ // error,
290
+ // challengeId: String(challengeId),
291
+ // }));
292
+
293
+ return {
294
+ challengeId : String ( challengeId ) ,
295
+ checkpoints : [ ] ,
296
+ } ,
292
297
}
293
298
294
299
/**
0 commit comments