From 5132e0a116945f158438d382f418202cc48f90ce Mon Sep 17 00:00:00 2001
From: Nathaniel Kim
- Your code is being submitted -- you'll see it here if it finishes successfully. -
- ) - } else { - return ( -- You haven't submitted any code yet! -
- ) - } + return ( ++ You haven't submitted any code yet! +
+ ) } else { const submissionRows = this.state.currentSubmission.map((submission, index) => { if (Object.keys(submission).length === 0) { @@ -400,19 +392,11 @@ class Submissions extends Component { ) } else if (this.state.lastSubmissions.length == 0) { - if (this.state.status == 0) { - return ( -- Your code is being submitted -- you'll see it here if it finishes successfully. -
- ) - } else { - return ( -- You haven't submitted any code yet! -
- ) - } + return ( ++ You haven't had any successful submissions yet! (If you have code being submitted, you'll see it here if it finishes successfully.) +
+ ) } else { const submissionRows = this.state.lastSubmissions.map((submission, index) => { if (Object.keys(submission).length === 0) {