Skip to content

Commit

Permalink
Fixed bug where non-accepted assessment has "Review Answers" button.
Browse files Browse the repository at this point in the history
  • Loading branch information
chekjun committed Jun 18, 2021
1 parent 0fdc5b2 commit f60b51d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/githubAssessments/GitHubAssessmentListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ function convertAssessmentOverviewToCard(
if (assessmentNotAccepted) {
buttonText = 'Accept';
handleClick = () => window.open(assessmentOverview.link);
}

if (isOverdue) {
} else if (isOverdue) {
buttonText = 'Review Answers';
}

Expand Down

0 comments on commit f60b51d

Please sign in to comment.