fix: prevent first waveform bar from being lit when audio not playing

This commit is contained in:
hazre committed 2026-03-17 18:54:17 +01:00
1 parent 3c40ad77f3
commit 4ed7f65399
1 file changed
+1 -1
@@ -226,7 +226,7 @@ function PreviewAudio({ fileItem }: PreviewAudioProps) {
>
{bars.map((level, i) => {
const barRatio = i / BAR_COUNT;
const played = barRatio <= progress;
const played = progress > 0 && barRatio <= progress;
return (
<div
// eslint-disable-next-line react/no-array-index-key