Skip to content

best way to save what you love

web/ChangelogEntry: expect date to always exist

dumbmoron4fab0d3fb8a6
diff --git a/web/src/components/changelog/ChangelogEntry.svelte b/web/src/components/changelog/ChangelogEntry.svelte
index d23500fc..4fdc1129 100644
--- a/web/src/components/changelog/ChangelogEntry.svelte
+++ b/web/src/components/changelog/ChangelogEntry.svelte
@@ -27,9 +27,7 @@
<div id="changelog-header" class:no-padding={!banner}>
<div class="changelog-info">
<div class="changelog-version">{version}</div>
- {#if date}
- <div class="changelog-date">{formatDate(date)}</div>
- {/if}
+ <div class="changelog-date">{formatDate(date)}</div>
</div>
<h1 class="changelog-title">{title}</h1>
</div>
diff --git a/web/src/lib/types/changelogs.ts b/web/src/lib/types/changelogs.ts
index ed3d85f9..d07740d6 100644
--- a/web/src/lib/types/changelogs.ts
+++ b/web/src/lib/types/changelogs.ts
@@ -2,7 +2,7 @@ import type { SvelteComponent } from "svelte"
export interface ChangelogMetadata {
title: string,
- date: string
+ date: string,
banner?: {
file: string,
alt: string