Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/hearing/Transcriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const Transcriptions = ({
const resultString: string = convertToString(startTime)

let currentIndex = transcriptData.findIndex(
element => parseInt(resultString, 10) <= element.end / 1000
element => parseInt(resultString, 10) < element.end / 1000
)

// Set the initial scroll target when we have a startTime and transcripts
Expand Down Expand Up @@ -233,7 +233,7 @@ export const Transcriptions = ({
const handleTimeUpdate = () => {
videoLoaded
? (currentIndex = transcriptData.findIndex(
element => videoRef.current.currentTime <= element.end / 1000
element => videoRef.current.currentTime < element.end / 1000
))
: null
if (containerRef.current && currentIndex !== highlightedId) {
Expand Down
Loading