From 3244d0bc90230c6e805803cad05da70a83327a8d Mon Sep 17 00:00:00 2001 From: Giovanni Torelli Leite Walter Date: Thu, 9 May 2024 19:52:22 -0300 Subject: [PATCH] Minor bug fix --- src/components/playerList/PlayerList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/playerList/PlayerList.tsx b/src/components/playerList/PlayerList.tsx index c026ddf..2dbcdcb 100644 --- a/src/components/playerList/PlayerList.tsx +++ b/src/components/playerList/PlayerList.tsx @@ -7,7 +7,7 @@ import { useContext, useEffect, useState } from "react" function PlayerContainer({ player }: { player: Player }) { const { currentPlayer, setCurrentPlayer } = useContext(PlayerContext) - const [volume, setVolume] = useState(Math.round(player.volume) * 100) + const [volume, setVolume] = useState(Math.round(player.volume * 100)) const [isPlaying, setIsPlaying] = useState(player.status === "Playing\n") function handleVolumeChange(playerName: string, volume: number) {