Skip to content

Commit 8a20f61

Browse files
author
Vikas Agarwal
committed
last fix for enabling active status option didn’t work because of wrong conditions
1 parent 580b0e2 commit 8a20f61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/ProjectInfo/ProjectInfo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ProjectInfo extends Component {
5555
const hasReviewedOrActivePhases = !!_.find(phases, (phase) => _.includes([PHASE_STATUS_REVIEWED, PHASE_STATUS_ACTIVE], phase.status))
5656
const isProjectActive = project.status === PROJECT_STATUS_ACTIVE
5757
const isV3Project = project.version === 'v3'
58-
const projectCanBeActive = (isV3Project && !isProjectActive && hasReviewedOrActivePhases) || isProjectActive
58+
const projectCanBeActive = !isV3Project || (!isProjectActive && hasReviewedOrActivePhases) || isProjectActive
5959

6060

6161
// prepare review button

src/projects/list/components/Projects/ProjectsGridView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const ProjectsGridView = props => {
202202
const hasReviewedOrActivePhases = !!_.find(item.phases, (phase) => _.includes([PHASE_STATUS_REVIEWED, PHASE_STATUS_ACTIVE], phase.status))
203203
const isProjectActive = item.status === PROJECT_STATUS_ACTIVE
204204
const isV3Project = item.version === 'v3'
205-
const projectCanBeActive = (isV3Project && !isProjectActive && hasReviewedOrActivePhases) || isProjectActive
205+
const projectCanBeActive = !isV3Project || (!isProjectActive && hasReviewedOrActivePhases) || isProjectActive
206206
return (
207207
<div className="spacing">
208208
<EnhancedProjectStatus

0 commit comments

Comments
 (0)