Skip to content

Commit

Permalink
Merge pull request #378 from OMZigak/refactor/#376-apiQA
Browse files Browse the repository at this point in the history
[refactor] QA 관련 api 호출 로직 수정
  • Loading branch information
mmaybei authored Sep 12, 2024
2 parents f1e0215 + 28320a1 commit 7e0cb86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion KkuMulKum/Source/Home/ViewModel/HomeViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ final class HomeViewModel {
let placeName = self.nearestPromise.value?.data?.placeName ?? ""
todayPlaceName.value = placeName.count > 14 ? String(placeName.prefix(14)) + "..." : placeName

requestMyReadyStatus()
if let _ = nearestPromise.value?.data {
requestMyReadyStatus()
}
} catch {
print(">>> \(error.localizedDescription) : \(#function)")
}
Expand Down

0 comments on commit 7e0cb86

Please sign in to comment.