Skip to content

Commit 79ccc71

Browse files
aramb-devclaude
andcommitted
fix: remove undefined audioSource reference in AudioPlayer
- Removed audioSource.duration fallback since component only receives audioUrl - Duration is tracked internally in AudioPlayer state via onLoadedMetadata 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0548edd commit 79ccc71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/transcription/TranscriptionStudio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const AudioPlayer: React.FC<AudioPlayerProps> = ({
201201
<div className="space-y-1">
202202
<div className="flex justify-between text-xs text-gray-500">
203203
<span>{formatDuration(currentTime)}</span>
204-
<span>{formatDuration(duration || audioSource.duration)}</span>
204+
<span>{formatDuration(duration)}</span>
205205
</div>
206206
<div
207207
className="h-1 cursor-pointer overflow-hidden rounded-full bg-gray-200 transition-all duration-100 hover:h-2"

0 commit comments

Comments
 (0)