Skip to content

Commit 79e6274

Browse files
authored
rename methods
1 parent 9584ac6 commit 79e6274

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/projects/detail/components/timeline/milestones/MilestoneTypeCheckpointReview/MilestoneTypeCheckpointReview.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MilestoneTypeCheckpointReview extends React.Component {
4040
this.completeReview = this.completeReview.bind(this)
4141
this.toggleRejectedSection = this.toggleRejectedSection.bind(this)
4242
this.moveToReviewingState = this.moveToReviewingState.bind(this)
43-
this.shouldActivateCompleteReviewButton = this.shouldActivateCompleteReviewButton.bind(this)
43+
this.shouldDisableCompleteReviewButton = this.shouldDisableCompleteReviewButton.bind(this)
4444
}
4545

4646
showCompleteReviewConfirmation() {
@@ -171,7 +171,7 @@ class MilestoneTypeCheckpointReview extends React.Component {
171171
return milestone[`${milestone.status}Text`]
172172
}
173173

174-
shouldActivateCompleteReviewButton(links, selectedLinks) {
174+
shouldDisableCompleteReviewButton(links, selectedLinks) {
175175
const linksLength = links.length
176176
const selectedLinksLength = selectedLinks.length
177177
if (linksLength < 5 && selectedLinksLength === linksLength) {
@@ -359,7 +359,7 @@ class MilestoneTypeCheckpointReview extends React.Component {
359359
<button
360360
className={'tc-btn tc-btn-primary'}
361361
onClick={!currentUser.isCustomer ? this.showCompleteReviewConfirmation : this.completeReview}
362-
disabled={this.shouldActivateCompleteReviewButton(links, selectedLinks) || !isInReview}
362+
disabled={this.shouldDisableCompleteReviewButton(links, selectedLinks) && !isInReview}
363363
>
364364
Complete review ({
365365
daysLeft >= 0

0 commit comments

Comments
 (0)