Fix: Return empty string for invalid symbol in formatSymbolForTradingView (CodeRabbit feedback)

This commit is contained in:
wenliang 2026-02-12 12:44:54 +08:00
parent 294d0b98e9
commit 960044eb2d
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ export const getFormattedTodayDate = () => new Date().toLocaleDateString('en-US'
});
export function formatSymbolForTradingView(symbol: string): string {
if (!symbol) return symbol;
if (!symbol) return '';
const upperSymbol = symbol.toUpperCase();
// Shanghai