From b21d40333c74788ba682e423f7eb20354c9dd780 Mon Sep 17 00:00:00 2001 From: Macbook Date: Thu, 11 Jun 2026 01:54:14 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=84=EB=8B=A8=20=EB=A1=9C=EA=B7=B8=20?= =?UTF-8?q?=EA=B0=95=ED=99=94:=20=EC=84=9C=EB=B2=84=20=EC=A0=84=EB=9E=B5?= =?UTF-8?q?=20=EB=AA=A9=EB=A1=9D=C2=B7live=EC=84=A4=EC=A0=95=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- frontend/src/utils/resolveNotificationStrategy.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/utils/resolveNotificationStrategy.ts b/frontend/src/utils/resolveNotificationStrategy.ts index 0b7deb7..8687dd5 100644 --- a/frontend/src/utils/resolveNotificationStrategy.ts +++ b/frontend/src/utils/resolveNotificationStrategy.ts @@ -80,7 +80,9 @@ export async function resolveNotificationStrategy( const normalizedId = normalizeStrategyId(strategyId); // prefetched가 빈 배열이면 직접 API로 재시도 (백엔드 미준비 시 prefetch가 빈 채로 캐시될 수 있음) const list = (prefetched != null && prefetched.length > 0) ? prefetched : await getStrategiesList(); - console.debug('[resolveStrategy] id=%s name=%s listSize=%d', normalizedId, strategyName, list.length); + console.debug('[resolveStrategy] id=%s name=%s listSize=%d list=%s', + normalizedId, strategyName, list.length, + list.slice(0, 5).map(s => `#${s.id}:${s.name?.substring(0, 20)}`).join(' | ')); if (normalizedId != null) { const fromList = list.find(s => s.id === normalizedId); @@ -118,15 +120,16 @@ export async function resolveNotificationStrategy( if (normalizedMarket) { try { const live = await loadLiveStrategySettings(normalizedMarket); - const liveId = normalizeStrategyId(live.strategyId); + const liveId = normalizeStrategyId(live?.strategyId); + console.debug('[resolveStrategy] liveSettings %s → strategyId=%s', normalizedMarket, liveId); if (liveId != null) { const loaded = await loadStrategyForNotification(liveId); if (loaded) { return { strategy: loaded, strategyId: liveId }; } } - } catch { - /* ignore */ + } catch (e) { + console.debug('[resolveStrategy] liveSettings error:', e); } }