Skip to content

Commit

Permalink
refactor/#376 오늘의 약속이 있을 때만 준비 상태 api를 호출하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaybei committed Sep 10, 2024
1 parent f1e0215 commit 28320a1
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 28320a1

Please sign in to comment.