Skip to content

Commit

Permalink
fix: vesting progress date
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp committed Sep 18, 2023
1 parent 1c654e4 commit 06dddd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Projects/ProjectCard/VestingProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ const VestingProgress = ({ project, basic }: Props) => {
{contract?.finish_at && (
<div className="VestingProgress__VestedAt">
<span>
{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')}
</span>
<span className="VestingProgress__VestedDate">{Time.unix(contract.finish_at).fromNow()}</span>
</div>
Expand Down

0 comments on commit 06dddd2

Please sign in to comment.