diff --git a/SodaLive/Sources/Chat/Character/CharacterView.swift b/SodaLive/Sources/Chat/Character/CharacterView.swift index fc93115..bc061a7 100644 --- a/SodaLive/Sources/Chat/Character/CharacterView.swift +++ b/SodaLive/Sources/Chat/Character/CharacterView.swift @@ -97,12 +97,14 @@ struct CharacterView: View { spacing: gridSpacing ) { ForEach(viewModel.recommendCharacters.indices, id: \.self) { idx in + let character = viewModel.recommendCharacters[idx] CharacterItemView( - character: viewModel.recommendCharacters[idx], + character: character, size: width, rank: idx + 1, isShowRank: false ) + .onTapGesture { onSelectCharacter(character.characterId) } } } .padding(.horizontal, horizontalPadding)