Fix timestamp field name in changelogs.json and ChangelogVersion interface

This commit is contained in:
Shidorien
2024-01-08 10:17:19 +01:00
parent 8e8d608120
commit b8262a941d
3 changed files with 4 additions and 4 deletions
@@ -14,7 +14,7 @@ export const ChangelogModal: ModalComponent<void, ChangelogVersion> = ({ resolve
const openTwitter = () => linkOpener.open("https://twitter.com/BSManager_");
const openSupportPage = () => linkOpener.open("https://www.patreon.com/bsmanager");
const openDiscord = () => linkOpener.open("https://discord.gg/uSqbHVpKdV");
const date = changelog?.timestampPublished ? new Date(changelog.timestampPublished * 1000).toLocaleDateString() : '';
const date = changelog?.timestamp ? new Date(changelog.timestamp * 1000).toLocaleDateString() : '';
return (
<form className="w-[350px] text-gray-800 dark:text-gray-200 h-[70vh] flex flex-col justify-between">
@@ -13,7 +13,7 @@ export interface Changelog {
export interface ChangelogVersion {
htmlBody: string;
title: string;
timestampPublished: number;
timestamp : number;
version: string;
}
export class AutoUpdaterService {