테블릿 로딩 이슈 수정
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* ui_preferences.virtual.targets 가 비었을 때 서버·레거시에서 투자대상 복구
|
||||
*/
|
||||
import { loadActiveLiveStrategySettings, loadWatchlist } from './backendApi';
|
||||
import { hasRegisteredUser, loadActiveLiveStrategySettings, loadWatchlist } from './backendApi';
|
||||
import {
|
||||
loadVirtualSession,
|
||||
loadVirtualTargets,
|
||||
@@ -67,6 +67,8 @@ export async function hydrateVirtualTargetsIfEmpty(): Promise<VirtualTargetItem[
|
||||
const session = loadVirtualSession();
|
||||
const globalId = session.globalStrategyId;
|
||||
|
||||
if (!hasRegisteredUser()) return [];
|
||||
|
||||
try {
|
||||
const active = await loadActiveLiveStrategySettings();
|
||||
if (active.length > 0) return fromLiveSettings(active, globalId);
|
||||
|
||||
Reference in New Issue
Block a user