Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Torelli committed May 9, 2024
1 parent 91ffac6 commit 3244d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/playerList/PlayerList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3244d0b

Please sign in to comment.