모바일 로딩 이슈 수정

This commit is contained in:
Macbook
2026-05-31 23:25:52 +09:00
parent 5adb22721e
commit c1c819ef29
3 changed files with 156 additions and 99 deletions
+7 -1
View File
@@ -40,7 +40,10 @@ async function fetchTickersFromBackend(markets: string[]): Promise<UpbitTickerRa
const data = (await retry.json()) as UpbitTickerRaw[];
return Array.isArray(data) ? data : null;
}
if (!res.ok) return null;
if (!res.ok) {
console.warn('[ticker] backend', res.status, qs || '(all)');
return null;
}
const data = (await res.json()) as UpbitTickerRaw[];
return Array.isArray(data) ? data : null;
} catch {
@@ -92,5 +95,8 @@ export async function fetchTickersThrottled(markets: string[]): Promise<UpbitTic
if (all != null && all.length > 0) return all;
}
if (import.meta.env.DEV) {
console.warn('[ticker] backend unavailable, falling back to /upbit-api');
}
return fetchTickersFromUpbitDirect(unique);
}