Skip to content

Commit

Permalink
[Fix] 미디어 플레이어 이미지 수정
Browse files Browse the repository at this point in the history
- 전달하는 팀명을 현재 선택한 팀이 아닌 노래 정보와 일치하는 팀명으로 전달하도록 변경
  • Loading branch information
JMM00 committed Jun 10, 2023
1 parent e6e710c commit 0dae6c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Halmap/Data/DataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class DataManager: ObservableObject {
teamLists.forEach { teamName in
fetchSong(team: teamName.rawValue, type: true) { songs in
self.playerSongsAll[teamName.fetchTeamIndex()] = songs
self.setSongList(team: self.selectedTeam)
}
fetchSong(team: teamName.rawValue, type: false) { songs in
self.teamSongsAll[teamName.fetchTeamIndex()] = songs
self.setSongList(team: self.selectedTeam)
}
}

Expand Down
2 changes: 1 addition & 1 deletion Halmap/View/SongInformation/SongPlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct SongPlayerView: View {
audioManager.removePlayer()
}
.onAppear(){
audioManager.AMset(song: song, selectedTeam: selectedTeam)
audioManager.AMset(song: song, selectedTeam: team)
}
.onReceive(timer) { _ in
guard let player = AudioManager.instance.player else { return }
Expand Down

0 comments on commit 0dae6c6

Please sign in to comment.