fix(nx-dev): webinar list page shows event date (#30953)
/webinar page should show the event date not the publish date
This commit is contained in:
parent
9ae68a7c0d
commit
ea40d04e70
@ -7,11 +7,14 @@ export interface WebinarListItemProps {
|
|||||||
episode: number;
|
episode: number;
|
||||||
}
|
}
|
||||||
export function WebinarListItem({ webinar, episode }: WebinarListItemProps) {
|
export function WebinarListItem({ webinar, episode }: WebinarListItemProps) {
|
||||||
const formattedDate = new Date(webinar.date).toLocaleDateString('en-US', {
|
const formattedDate = new Date(webinar.eventDate || '').toLocaleDateString(
|
||||||
|
'en-US',
|
||||||
|
{
|
||||||
month: 'short',
|
month: 'short',
|
||||||
day: '2-digit',
|
day: '2-digit',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
});
|
}
|
||||||
|
);
|
||||||
const authorsList = (
|
const authorsList = (
|
||||||
webinar.authors.length > 1
|
webinar.authors.length > 1
|
||||||
? webinar.authors.map((a, i) =>
|
? webinar.authors.map((a, i) =>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user