diff --git a/packages/nextjs/app/_components/ActiveGrants.tsx b/packages/nextjs/app/_components/ActiveGrants.tsx index 4f32fa7..7f67789 100644 --- a/packages/nextjs/app/_components/ActiveGrants.tsx +++ b/packages/nextjs/app/_components/ActiveGrants.tsx @@ -4,7 +4,7 @@ import { getAllActiveGrants } from "~~/services/database/grants"; import { GrantData } from "~~/services/database/schema"; import { formatDateFromNow } from "~~/utils/grants"; -const ActiveGrantRow = ({ title, askAmount, builder, timestamp }: GrantData) => { +const ActiveGrantRow = ({ title, askAmount, builder, approvedAt }: GrantData) => { return ( {title} @@ -12,7 +12,7 @@ const ActiveGrantRow = ({ title, askAmount, builder, timestamp }: GrantData) =>
- {formatDateFromNow(timestamp)} + {approvedAt ? formatDateFromNow(approvedAt) : "-"} ); };