OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.
Fix: Return empty string for invalid symbol in formatSymbolForTradingView (CodeRabbit feedback)
wenliang960044eb2da1
diff --git a/lib/utils.ts b/lib/utils.tsindex 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