From 2b65433387b7548cbddf154df5d1d997b089dc0e Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Mon, 18 Sep 2023 11:50:32 -0300 Subject: [PATCH] fix: vesting progress date (#1267) --- src/components/Projects/ProjectCard/VestingProgress.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Projects/ProjectCard/VestingProgress.tsx b/src/components/Projects/ProjectCard/VestingProgress.tsx index 559b12821..48da13d17 100644 --- a/src/components/Projects/ProjectCard/VestingProgress.tsx +++ b/src/components/Projects/ProjectCard/VestingProgress.tsx @@ -82,7 +82,9 @@ const VestingProgress = ({ project, basic }: Props) => { {contract?.finish_at && (
- {Time(contract.finish_at).isBefore(Time()) ? t('page.grants.ended_date') : t('page.grants.end_date')} + {Time.unix(contract.finish_at).isBefore(Time()) + ? t('page.grants.ended_date') + : t('page.grants.end_date')} {Time.unix(contract.finish_at).fromNow()}