Skip to content

Commit

Permalink
fix: #106-참가자 1부터 저장되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunJaeyeon committed Nov 30, 2024
1 parent d7dbc59 commit ec238ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ struct PlayerRowView: View {

VStack {
TextField(
player.isHost ? "진행자" : "도전자\(player.turn)",
player.isHost ? "진행자" : "도전자\(player.turn - 1)",
text: Binding(
get: {
player.nickname
Expand All @@ -170,7 +170,7 @@ struct PlayerRowView: View {
updateNickname(index, newValue)
}
),
prompt: Text(isFocused ? "" : (player.isHost ? "진행자" : "도전자\(player.turn)"))
prompt: Text(isFocused ? "" : (player.isHost ? "진행자" : "도전자\(player.turn - 1)"))
.foregroundStyle(Color.ppWhiteGray)
)
.foregroundStyle(.white)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import SwiftUI
if player.isHost {
tempPlayers[index].nickname = "진행자"
} else {
tempPlayers[index].nickname = "참가자\(player.turn)"
tempPlayers[index].nickname = "참가자\(player.turn - 1)"
}
}
}
Expand Down

0 comments on commit ec238ec

Please sign in to comment.