diff --git a/KkuMulKum/Source/Home/ViewController/HomeViewController.swift b/KkuMulKum/Source/Home/ViewController/HomeViewController.swift index 212500cd..b6152ada 100644 --- a/KkuMulKum/Source/Home/ViewController/HomeViewController.swift +++ b/KkuMulKum/Source/Home/ViewController/HomeViewController.swift @@ -290,11 +290,15 @@ private extension HomeViewController { func updateUpcomingPromise() { viewModel.upcomingPromiseList.bind { [weak self] _ in + guard let self, + let responseBody = viewModel.upcomingPromiseList.value, + let data = responseBody.data + else { + return + } + DispatchQueue.main.async { - guard let self = self else { return } - let data = self.viewModel.nearestPromise.value - - if data?.data == nil { + if data.promises.isEmpty { self.rootView.upcomingPromiseView.isHidden = true self.rootView.upcomingEmptyView.isHidden = false } else {