diff --git a/src/components/Post/PostCard.tsx b/src/components/Post/PostCard.tsx index f386be8..9e29021 100644 --- a/src/components/Post/PostCard.tsx +++ b/src/components/Post/PostCard.tsx @@ -33,10 +33,7 @@ export default function PostCard({ closed, }: PostCardProps) { const { rateText } = getPayRateText(hourlyPay, originalHourlyPay); - const isPast = isPastDate( - startsAt ?? Date.now().toLocaleString(), - workhour ?? 0, - ); + const isPast = isPastDate(startsAt ?? Date.now().toLocaleString()); const isDimmed = closed || isPast; const timeRange = @@ -52,7 +49,7 @@ export default function PostCard({ backgroundColor === "#ffffff" && "border border-gray-20 shadow-sm", )} > -