From 8a2d92a4bbdb16d3257a17f10877986808e690b4 Mon Sep 17 00:00:00 2001 From: Bram Suurd Date: Fri, 9 Aug 2024 00:40:29 +0200 Subject: [PATCH] refactor: Remove unused code in MostViewedScripts component --- src/app/scripts/_components/ScriptInfoBlocks.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/app/scripts/_components/ScriptInfoBlocks.tsx b/src/app/scripts/_components/ScriptInfoBlocks.tsx index e654463..16ad9a4 100644 --- a/src/app/scripts/_components/ScriptInfoBlocks.tsx +++ b/src/app/scripts/_components/ScriptInfoBlocks.tsx @@ -127,7 +127,6 @@ export function MostViewedScripts({ items }: { items: Category[] }) { .map((script) => ({ ...script, })) - .sort((a, b) => a.mostViewedPosition - b.mostViewedPosition); return mostViewedScripts; }, [items]); @@ -147,10 +146,6 @@ export function MostViewedScripts({ items }: { items: Category[] }) { {mostViewedScripts.length > 0 && ( <>

Most Viewed Scripts

-

- This data, unfortunately, is not directly influenced by interacting - with the website. (yet) -

)}