Skip to content

Commit d5b2706

Browse files
committed
fix: temporarily suppress checkpoint winner results
Signed-off-by: Rakib Ansary <[email protected]>
1 parent 0dbab0c commit d5b2706

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

src/actions/challenge.js

+28-23
Original file line numberDiff line numberDiff line change
@@ -266,29 +266,34 @@ function fetchCheckpointsInit() {}
266266
* @param {String} challengeId Challenge ID.
267267
*/
268268
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+
},
292297
}
293298

294299
/**

0 commit comments

Comments
 (0)