🐛 fix: Fixed the issue where the message receiving date is undefined in some cases

This commit is contained in:
jarvis2f 2025-01-06 21:00:51 +08:00
parent e7b568b752
commit 03f5b92c01

View file

@ -77,7 +77,7 @@ export default function FileExtra({ file, rowHeight }: FileExtraProps) {
</TooltipTrigger>
<TooltipContent>
<div className="max-w-80 text-wrap rounded p-2">
{`Message received at ${file.formatDate}`}
{`Message received at ${new Date(file.date * 1000).toLocaleString()}`}
</div>
</TooltipContent>
</Tooltip>