Skip to content

Commit

Permalink
[feat]#202: 캐시 수정해요
Browse files Browse the repository at this point in the history
  • Loading branch information
flash159483 committed Nov 18, 2024
1 parent e6c7d12 commit 57749a2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}
Expand Down

0 comments on commit 57749a2

Please sign in to comment.