fix(ui): guard profile header date format against invalid time value

This commit is contained in:
ZhenYi 2026-05-18 20:54:43 +08:00
parent 9f8008b35d
commit b01a7390ee

View File

@ -157,7 +157,7 @@ export function ProfileHeader({
<Calendar className="size-3.5" /> <Calendar className="size-3.5" />
<span> <span>
{t("me.profile.joined")}{" "} {t("me.profile.joined")}{" "}
{format(new Date(user.created_at), "MMM yyyy")} {user.created_at ? format(new Date(user.created_at), "MMM yyyy") : null}
</span> </span>
</div> </div>
{user.organization && ( {user.organization && (