fix: TypeScript build errors

This commit is contained in:
Alexej Wolff
2026-02-11 00:26:34 +01:00
parent cc003ffbd5
commit a9f0ab225b
5 changed files with 4 additions and 12 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ export function getSessions(): GameSession[] {
const sessions = JSON.parse(data);
return sessions.map((s: GameSession) => ({
...s,
createdAt: new Date(s.createdAt),
updatedAt: new Date(s.updatedAt),
createdAt: s.createdAt ? new Date(s.createdAt) : new Date(),
updatedAt: s.updatedAt ? new Date(s.updatedAt) : new Date(),
messages: s.messages.map((m) => ({
...m,
timestamp: new Date(m.timestamp),