Skip to content

Commit

Permalink
Merge branch 'feat/#106-ShowcaseDefaultPlayer' into feat/#107-Showcas…
Browse files Browse the repository at this point in the history
…eRankingView
  • Loading branch information
HyunJaeyeon committed Nov 30, 2024
2 parents 73417b9 + ec238ec commit 62bbd8e
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 62bbd8e

Please sign in to comment.