fix: created time always shows the current time

pull/4751/head
hchengting 1 month ago
parent 6d319900d6
commit 1d695de956

@ -5,7 +5,7 @@ import { cn } from "@/utils";
// convert Date to datetime string.
const formatDate = (date: Date | undefined): string => {
return dayjs(date).format("M/D/YYYY, H:mm:ss");
return date ? dayjs(date).format("M/D/YYYY, H:mm:ss") : "";
};
interface Props {

Loading…
Cancel
Save