Skip to content

Commit

Permalink
fix: projects funding total not showing (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Nov 21, 2023
1 parent 1a0715a commit a1a70b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a1a70b5

Please sign in to comment.