fix(ui): guard profile header date format against invalid time value
This commit is contained in:
parent
9f8008b35d
commit
b01a7390ee
@ -157,7 +157,7 @@ export function ProfileHeader({
|
||||
<Calendar className="size-3.5" />
|
||||
<span>
|
||||
{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>
|
||||
</div>
|
||||
{user.organization && (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user