mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-21 09:31:17 -08:00
fix: prevent first waveform bar from being lit when audio not playing
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user