diff --git a/src/utils/projects.ts b/src/utils/projects.ts index 40ae21ded..2c93b7769 100644 --- a/src/utils/projects.ts +++ b/src/utils/projects.ts @@ -68,15 +68,13 @@ export function getProjectFunding(project: ProjectQueryResult, vesting: Vesting } export function getProjectStatus(project: ProjectQueryResult, vesting: VestingWithLogs | undefined): ProjectStatus { - const legacyCondition = !vesting && project.enacted_description - if (project.enacting_tx || legacyCondition) { + const legacyCondition = project.enacting_tx || (!vesting && project.enacted_description) + if (legacyCondition) { return ProjectStatus.Finished } - if (!vesting) { return ProjectStatus.Pending } - return toGovernanceProjectStatus(vesting.status) }