Skip to content

Commit

Permalink
fix: vesting progress date (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Sep 18, 2023
1 parent 4582aff commit 2b65433
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 2b65433

Please sign in to comment.