From a1a70b5a70750b43d9d7bb0628fc937f1accb7dd Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Tue, 21 Nov 2023 12:33:43 -0300 Subject: [PATCH] fix: projects funding total not showing (#1406) --- src/utils/projects.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {