Fix: Return empty string for invalid symbol in formatSymbolForTradingView (CodeRabbit feedback)
This commit is contained in:
parent
294d0b98e9
commit
960044eb2d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue