feat(character): 본인인증 하지 않은 유저가 캐릭터 상세보기로 들어갈 때 본인인증 팝업 띄움

This commit is contained in:
Yu Sung
2025-09-12 01:27:37 +09:00
parent da78b43f64
commit 5451c7ec5e
6 changed files with 111 additions and 85 deletions

View File

@@ -39,7 +39,6 @@ final class CharacterViewModel: ObservableObject {
}
} receiveValue: { response in
let responseData = response.data
self.isLoading = false
do {
let jsonDecoder = JSONDecoder()
@@ -60,7 +59,9 @@ final class CharacterViewModel: ObservableObject {
self.isShowPopup = true
}
self.isLoading = false
} catch {
self.isLoading = false
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
self.isShowPopup = true
}