-
onDownloadSubmission(submissionObject.id)}
+ type="button"
>
-
+
{ /*
TODO: At the moment we just fetch downloads from the legacy
Topcoder Studio API, and we don't need any JS code to this.
@@ -132,6 +130,7 @@ Submission.propTypes = {
}),
showScreeningDetails: PT.bool,
track: PT.string.isRequired,
+ onDownload: PT.func.isRequired,
onDelete: PT.func.isRequired,
onShowDetails: PT.func,
status: PT.string.isRequired,
diff --git a/src/shared/components/challenge-detail/Checkpoints/index.jsx b/src/shared/components/challenge-detail/Checkpoints/index.jsx
index cc7f5a62c8..a6e1282d5a 100644
--- a/src/shared/components/challenge-detail/Checkpoints/index.jsx
+++ b/src/shared/components/challenge-detail/Checkpoints/index.jsx
@@ -27,7 +27,7 @@ function Checkpoints(props) {
document
.getElementsByClassName(style['challenge-checkpoint-winners'])[index]
.scrollIntoView(true);
- toggleCheckpointFeedback(index, true);
+ toggleCheckpointFeedback(item.submissionId, true);
}}
type="button"
>
@@ -47,12 +47,12 @@ function Checkpoints(props) {
}}
/>
{
- checkpointResults && checkpointResults.map((item, index) => (
+ checkpointResults && checkpointResults.map(item => (