diff --git a/src/widgets/stocks/component.jsx b/src/widgets/stocks/component.jsx index cdf043855..844365cb2 100644 --- a/src/widgets/stocks/component.jsx +++ b/src/widgets/stocks/component.jsx @@ -86,17 +86,7 @@ export default function Component({ service }) { const { widget } = service; const { watchlist, showUSMarketStatus } = widget; - if (!watchlist || !watchlist.length || watchlist.length > 28) { - return ( - - - - ); - } - - const hasDuplicates = new Set(watchlist).size !== watchlist.length; - - if (hasDuplicates) { + if (!watchlist || !watchlist.length || watchlist.length > 28 || new Set(watchlist).size !== watchlist.length) { return (