diff --git a/SodaLive/Sources/MyPage/Profile/ProfileUpdateViewModel.swift b/SodaLive/Sources/MyPage/Profile/ProfileUpdateViewModel.swift index da7f7e8..5f667d1 100644 --- a/SodaLive/Sources/MyPage/Profile/ProfileUpdateViewModel.swift +++ b/SodaLive/Sources/MyPage/Profile/ProfileUpdateViewModel.swift @@ -295,7 +295,8 @@ final class ProfileUpdateViewModel: ObservableObject { let jsonDecoder = JSONDecoder() let decoded = try jsonDecoder.decode(ApiResponse.self, from: responseData) - if let _ = decoded.data, decoded.success { + if let profileImageUrl = decoded.data, decoded.success { + UserDefaults.set(profileImageUrl, forKey: .profileImage) self.refresh() self.getMyProfile() } else {