From 28320a1ca41aaeb96ff81487cbbff61c331d8320 Mon Sep 17 00:00:00 2001 From: mmaybei Date: Wed, 11 Sep 2024 08:25:52 +0900 Subject: [PATCH] =?UTF-8?q?refactor/#376=20=EC=98=A4=EB=8A=98=EC=9D=98=20?= =?UTF-8?q?=EC=95=BD=EC=86=8D=EC=9D=B4=20=EC=9E=88=EC=9D=84=20=EB=95=8C?= =?UTF-8?q?=EB=A7=8C=20=EC=A4=80=EB=B9=84=20=EC=83=81=ED=83=9C=20api?= =?UTF-8?q?=EB=A5=BC=20=ED=98=B8=EC=B6=9C=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KkuMulKum/Source/Home/ViewModel/HomeViewModel.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/KkuMulKum/Source/Home/ViewModel/HomeViewModel.swift b/KkuMulKum/Source/Home/ViewModel/HomeViewModel.swift index 94a645b7..7e0868d1 100644 --- a/KkuMulKum/Source/Home/ViewModel/HomeViewModel.swift +++ b/KkuMulKum/Source/Home/ViewModel/HomeViewModel.swift @@ -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)") }