diff --git a/src/utils/projects.ts b/src/utils/projects.ts index c71311609..b3fad61fe 100644 --- a/src/utils/projects.ts +++ b/src/utils/projects.ts @@ -35,8 +35,12 @@ export function isCurrentProject(status?: ProjectStatus) { } export function isCurrentQuarterProject(startAt?: number) { + if (!startAt) { + return false + } + const currentQuarterStartDate = Time().startOf('quarter') - return Time(startAt).isAfter(currentQuarterStartDate) + return Time.unix(startAt || 0).isAfter(currentQuarterStartDate) } function getProjectVestingData(proposal: ProposalAttributes, vesting: TransparencyVesting) {