From 57749a23945744550848ee7c2421d48cd3bd7c36 Mon Sep 17 00:00:00 2001 From: flash159483 Date: Mon, 18 Nov 2024 21:09:43 +0900 Subject: [PATCH] =?UTF-8?q?[feat]#202:=20=EC=BA=90=EC=8B=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=B4=EC=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bff/wespot/entire/viewmodel/EntireEditViewModel.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/feature/entire/src/main/java/com/bff/wespot/entire/viewmodel/EntireEditViewModel.kt b/feature/entire/src/main/java/com/bff/wespot/entire/viewmodel/EntireEditViewModel.kt index bbf3af57..b6b5207a 100644 --- a/feature/entire/src/main/java/com/bff/wespot/entire/viewmodel/EntireEditViewModel.kt +++ b/feature/entire/src/main/java/com/bff/wespot/entire/viewmodel/EntireEditViewModel.kt @@ -235,6 +235,13 @@ class EntireEditViewModel @Inject constructor( profileRepository.updateProfileImage(url) }.onSuccess { success -> if (success) { + profileRepository.setProfile( + state.profile.copy( + profileCharacter = state.profile.profileCharacter.copy( + iconUrl = state.profilePath ?: "", + ), + ), + ) postEditDoneSideToast() reduce { state.copy(loading = false) } }