From 60053c97a288dc9bf21a7fd8672ac5a990f56ee2 Mon Sep 17 00:00:00 2001 From: HyunJaeyeon Date: Thu, 28 Nov 2024 18:16:38 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20#76-=EC=9D=B4=EB=AF=B8=20quote=EA=B0=80?= =?UTF-8?q?=20=EC=A0=80=EC=9E=A5=EB=90=98=EC=96=B4=20=EC=9E=88=EC=9C=BC?= =?UTF-8?q?=EB=A9=B4=20=EB=B0=94=EB=A1=9C=20=EC=84=A0=ED=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameSetting/AnimeSelect/AnimeSelectView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PepperoniV2/Presentation/GameSetting/AnimeSelect/AnimeSelectView.swift b/PepperoniV2/Presentation/GameSetting/AnimeSelect/AnimeSelectView.swift index 0af5eb9..6e0524f 100644 --- a/PepperoniV2/Presentation/GameSetting/AnimeSelect/AnimeSelectView.swift +++ b/PepperoniV2/Presentation/GameSetting/AnimeSelect/AnimeSelectView.swift @@ -151,6 +151,12 @@ struct AnimeSelectView: View { // 애니 선택 및 데이터 로드 @MainActor private func selectAnime(_ anime: Anime) async { + // quotes가 이미 저장되어 있으면 바로 선택 + if !anime.quotes.isEmpty { + viewModel.selectAnime(anime) + return + } + isLoading = true do { try await firestoreService.fetchAnimeDetailsAndStore(context: modelContext, animeID: anime.id) // modelContext 전달