sent at is more useful now

This commit is contained in:
KMKoushik
2024-11-03 10:16:38 +11:00
parent bb0d54188c
commit d3e832605e

View File

@@ -185,8 +185,9 @@ export default function EmailsList() {
</TableCell>
<TableCell className="text-right">
{email.latestStatus !== "SCHEDULED"
? formatDistanceToNow(
email.scheduledAt ?? email.createdAt
? formatDate(
email.scheduledAt ?? email.createdAt,
"MMM do, hh:mm a"
)
: "--"}
</TableCell>