diff --git a/src/components/DreamCard.tsx b/src/components/DreamCard.tsx index 21e6e15..18a5ebc 100644 --- a/src/components/DreamCard.tsx +++ b/src/components/DreamCard.tsx @@ -48,7 +48,8 @@ export default function DreamCard({dream, user, animationDelay = 0}: DreamCardPr
{(dream.input.inputType === 'text' && dream.input.input) || (dream.input.inputType === 'audio' && dream.input.transcript) - || (dream.input.inputType === 'image' && dream.input.description)} + || (dream.input.inputType === 'image' && dream.input.description) + || (dream.input.inputType === 'chip' && dream.input.text)}
diff --git a/src/data/MockDreams.ts b/src/data/MockDreams.ts
index 4b5ac1c..9152a2c 100644
--- a/src/data/MockDreams.ts
+++ b/src/data/MockDreams.ts
@@ -128,8 +128,8 @@ export const mockDreams: Dream[] = [
date: new Date('2025-07-17T05:28:57Z'),
tags: ['KI', 'Bewusstsein', 'Kontrolle'],
input: {
- inputType: "chip",
- description: 'Du hast von einem riesigen neuronalen Netzwerk, wo Gedanken als leuchtende Impulse zwischen synaptischen Verbindungen tanzten, geträumt.',
+ inputType: 'chip',
+ text: 'Du hast von einem riesigen neuronalen Netzwerk, wo Gedanken als leuchtende Impulse zwischen synaptischen Verbindungen tanzten, geträumt.',
eeg: {
alpha: [
21.49, 19.59, 21.94, 24.57, 19.30, 19.30, 24.74, 22.30, 18.59, 21.63,
diff --git a/src/pages/DreamPage.tsx b/src/pages/DreamPage.tsx
index 39df153..5fcdbbb 100644
--- a/src/pages/DreamPage.tsx
+++ b/src/pages/DreamPage.tsx
@@ -70,7 +70,10 @@ export default function DreamPage() {
{dream.input.inputType === 'image' && ()}
- {(dream.input.inputType === 'text' && dream.input.input) || (dream.input.inputType === 'audio' && dream.input.transcript) || (dream.input.inputType === 'image' && dream.input.description)} + {(dream.input.inputType === 'text' && dream.input.input) + || (dream.input.inputType === 'audio' && dream.input.transcript) + || (dream.input.inputType === 'image' && dream.input.description) + || (dream.input.inputType === 'chip' && dream.input.text)}
diff --git a/src/types/Dream.ts b/src/types/Dream.ts index 6e32b55..b1f6b9d 100644 --- a/src/types/Dream.ts +++ b/src/types/Dream.ts @@ -18,7 +18,7 @@ export type AudioInput = { export type ChipInput = { inputType: "chip"; - description: string; + text: string; eeg: { alpha: number[]; beta: number[];