From ec238ec9cdf61f92f213db30b66450c94b3107bd Mon Sep 17 00:00:00 2001 From: HyunJaeyeon Date: Sun, 1 Dec 2024 04:21:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20#106-=EC=B0=B8=EA=B0=80=EC=9E=90=201?= =?UTF-8?q?=EB=B6=80=ED=84=B0=20=EC=A0=80=EC=9E=A5=EB=90=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameSetting/PlayerSetting/PlayerSettingView.swift | 4 ++-- .../GameSetting/PlayerSetting/PlayerSettingViewModel.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PepperoniV2/Presentation/GameSetting/PlayerSetting/PlayerSettingView.swift b/PepperoniV2/Presentation/GameSetting/PlayerSetting/PlayerSettingView.swift index 319ba2c..a3bba55 100644 --- a/PepperoniV2/Presentation/GameSetting/PlayerSetting/PlayerSettingView.swift +++ b/PepperoniV2/Presentation/GameSetting/PlayerSetting/PlayerSettingView.swift @@ -161,7 +161,7 @@ struct PlayerRowView: View { VStack { TextField( - player.isHost ? "진행자" : "도전자\(player.turn)", + player.isHost ? "진행자" : "도전자\(player.turn - 1)", text: Binding( get: { player.nickname @@ -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) diff --git a/PepperoniV2/Presentation/GameSetting/PlayerSetting/PlayerSettingViewModel.swift b/PepperoniV2/Presentation/GameSetting/PlayerSetting/PlayerSettingViewModel.swift index 663dfef..b60a9aa 100644 --- a/PepperoniV2/Presentation/GameSetting/PlayerSetting/PlayerSettingViewModel.swift +++ b/PepperoniV2/Presentation/GameSetting/PlayerSetting/PlayerSettingViewModel.swift @@ -47,7 +47,7 @@ import SwiftUI if player.isHost { tempPlayers[index].nickname = "진행자" } else { - tempPlayers[index].nickname = "참가자\(player.turn)" + tempPlayers[index].nickname = "참가자\(player.turn - 1)" } } }