From 960044eb2da1e5aa988e9dd108acb1b6402aec51 Mon Sep 17 00:00:00 2001 From: wenliang Date: Thu, 12 Feb 2026 12:44:54 +0800 Subject: [PATCH] Fix: Return empty string for invalid symbol in formatSymbolForTradingView (CodeRabbit feedback) --- lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.ts b/lib/utils.ts index 25c2452..9d8362d 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -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