From 69998f7d2b8bfad7f43a992992e6ae0ad6a7e2dc Mon Sep 17 00:00:00 2001
From: myunsyeya <myunsyeya@ajou.ac.kr>
Date: Sun, 8 Dec 2024 03:06:17 +0900
Subject: [PATCH] =?UTF-8?q?hotfix:=20PC=20=EC=9D=B4=EB=A6=84=20=EB=B3=80?=
 =?UTF-8?q?=EA=B2=BD=20=EC=8B=9C=20=EC=83=81=EB=8B=A8=20=EC=9D=B4=EB=A6=84?=
 =?UTF-8?q?=EB=8F=84=20=EB=B0=94=EB=80=8C=EA=B2=8C=20=EB=B3=80=EA=B2=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/pages/MyCombinationPage/MyCombinationPage.jsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/pages/MyCombinationPage/MyCombinationPage.jsx b/src/pages/MyCombinationPage/MyCombinationPage.jsx
index 0d12dcf..ffc4ac5 100644
--- a/src/pages/MyCombinationPage/MyCombinationPage.jsx
+++ b/src/pages/MyCombinationPage/MyCombinationPage.jsx
@@ -74,6 +74,9 @@ const CertifiedCombination = () => {
       setPcs(pcs.map(pc => 
         pc.id === pcId ? { ...pc, name: newName } : pc
       ));
+      if (selectedPc?.id === pcId) {
+        setSelectedPc(prev => ({ ...prev, name: newName }));
+      }
     } catch (error) {
       console.error("PC 이름 변경 중 오류 발생:", error);
       throw error;
-- 
GitLab