diff --git a/src/routes/community/EventCard.svelte b/src/routes/community/EventCard.svelte index 2201586c77..a87d9e16a4 100644 --- a/src/routes/community/EventCard.svelte +++ b/src/routes/community/EventCard.svelte @@ -25,14 +25,13 @@ export let description: $$Props['description']; export let buttonText: $$Props['buttonText']; export let headingLevel: $$Props['headingLevel'] = 5; - $: headingTag = `h${headingLevel}`; - let hasPast: boolean = (new Date()) > (new Date(date)); - console.log(hasPast); - let dateString: string = new Date(date).toLocaleDateString('en-US', { + const hasPast: boolean = (new Date()) > (new Date(date)); + const dateString: string = new Date(date).toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric', }); + $: headingTag = `h${headingLevel}`;