fix(creator): 채널 홈 응답 모델을 맞춘다
This commit is contained in:
@@ -33,6 +33,10 @@ final class CreatorChannelViewModel: ObservableObject {
|
||||
guard let self else { return }
|
||||
|
||||
do {
|
||||
if let jsonString = String(data: response.data, encoding: .utf8) {
|
||||
DEBUG_LOG("CreatorChannelHome raw response: \(jsonString)")
|
||||
}
|
||||
|
||||
let jsonDecoder = JSONDecoder()
|
||||
let decoded = try jsonDecoder.decode(ApiResponse<CreatorChannelHomeResponse>.self, from: response.data)
|
||||
|
||||
@@ -48,6 +52,7 @@ final class CreatorChannelViewModel: ObservableObject {
|
||||
}
|
||||
} catch {
|
||||
ERROR_LOG(error.localizedDescription)
|
||||
print(error)
|
||||
self.applyApiFailedPlaceholderState()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user