From 02758c9d957b97575dd201a6bbdd4ac16ed5e18f Mon Sep 17 00:00:00 2001 From: jinwoong Date: Thu, 5 Sep 2024 13:54:10 +0900 Subject: [PATCH 1/2] Fix: Error fix --- .../Presentation/ViewModel/Profile/ProfileViewModel.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift b/Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift index ba2faaa9..19598bf4 100644 --- a/Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift +++ b/Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift @@ -105,12 +105,9 @@ class ProfileViewModel: ObservableObject { profileImage: croppedImage?.jpegData(compressionQuality: 0.8) ) - if success { - await loadInitialData() - } else { + if !success { profileUpdateError = "프로필 업데이트에 실패했어요. 다시 시도해주세요." showProfileAlert = true - } } func handleImageSelection(newItem: PhotosPickerItem?) { From 4991507b19c1fb382b96a020e997249e46abeb00 Mon Sep 17 00:00:00 2001 From: jinwoong Date: Thu, 5 Sep 2024 14:04:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Fix:=20=EB=88=84=EB=9D=BD=EB=90=9C=20?= =?UTF-8?q?=EA=B4=84=ED=98=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift b/Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift index 19598bf4..0c7cbf9b 100644 --- a/Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift +++ b/Kabinett/Presentation/ViewModel/Profile/ProfileViewModel.swift @@ -108,6 +108,7 @@ class ProfileViewModel: ObservableObject { if !success { profileUpdateError = "프로필 업데이트에 실패했어요. 다시 시도해주세요." showProfileAlert = true + } } func handleImageSelection(newItem: PhotosPickerItem?) {