Skip to content

Commit

Permalink
fix jukebox music name (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpolletvillard authored Sep 30, 2023
1 parent b94e65b commit e70d2ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/public/src/pages/component/jukebox/jukebox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export default function Jukebox(props: {

const MUSICS: string[] = Object.values(Dungeon)

const [music, setMusic] = useState<string>("")
const [music, setMusic] = useState<string>(
getGameScene()?.music?.key?.replace("music_", "") ?? ""
)
const [loading, setLoading] = useState<boolean>(false)
const [volume, setVolume] = useState<number>(getPreferences().musicVolume)

Expand Down

0 comments on commit e70d2ae

Please sign in to comment.