Skip to content

Commit 48f4b54

Browse files
ZachCutler04JackWilb
authored andcommitted
fixing bug
1 parent 81d672e commit 48f4b54

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/audioAnalysis/AudioProvenanceVis.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export function AudioProvenanceVis({
428428
{xScale ? (
429429
<Timer
430430
duration={totalAudioLength * 1000}
431-
initialTime={jumpedToAudioTime ? startTime + jumpedToAudioTime * 1000 + 1 : replayTimestamp ? startTime + replayTimestamp : 0}
431+
initialTime={jumpedToAudioTime ? startTime + jumpedToAudioTime * 1000 + 1 : replayTimestamp ? startTime + replayTimestamp : startTime}
432432
height={(analysisHasAudio ? 50 : 0) + 25}
433433
isPlaying={analysisIsPlaying}
434434
speed={speed}

src/components/audioAnalysis/Timer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function Timer({
1414
useEffect(() => {
1515
if (startTime) {
1616
// Initial time is the time the user wants to start at, if it's not provided, we start at the beginning
17-
const time = initialTime !== undefined ? initialTime : startTime;
17+
const time = initialTime;
1818
timer.current = time - startTime;
1919
directUpdateTimer(time, (time - startTime) / duration);
2020

0 commit comments

Comments
 (0)