diff --git a/src/pages/MyCombinationPage/MyCombinationPage.jsx b/src/pages/MyCombinationPage/MyCombinationPage.jsx index 0d12dcf41059cf0a9a48d3dfd4d34339bb2f44e8..ffc4ac59e959d939fd0f82fbb1501e62aaf120ea 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;