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) } }