diff --git a/enjoy/src/renderer/components/messages/assistant-message.tsx b/enjoy/src/renderer/components/messages/assistant-message.tsx index 31923126..1b4c9488 100644 --- a/enjoy/src/renderer/components/messages/assistant-message.tsx +++ b/enjoy/src/renderer/components/messages/assistant-message.tsx @@ -276,7 +276,7 @@ export const AssistantMessageComponent = (props: { setShadowing(value)}> diff --git a/enjoy/src/renderer/hooks/use-transcriptions.tsx b/enjoy/src/renderer/hooks/use-transcriptions.tsx index 5d53926a..7f28c9df 100644 --- a/enjoy/src/renderer/hooks/use-transcriptions.tsx +++ b/enjoy/src/renderer/hooks/use-transcriptions.tsx @@ -117,8 +117,8 @@ export const useTranscriptions = (media: AudioType | VideoType) => { sentence.timeline.splice(j, 0, { type: 'token', text: '-', - startTime: sentence.timeline[j - 1].endTime, - endTime: sentence.timeline[j - 1].endTime, + startTime: sentence.timeline[j - 1]?.endTime || 0, + endTime: sentence.timeline[j - 1]?.endTime || 0, timeline: [], }) return;