From 5305116649d4e927a47eccbd6d679f3565b37800 Mon Sep 17 00:00:00 2001 From: moist-webDev Date: Fri, 9 Jun 2023 22:09:39 -0400 Subject: [PATCH] remove copilot coment --- routes/OtherCat.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/OtherCat.tsx b/routes/OtherCat.tsx index 8ae97e2..749b522 100644 --- a/routes/OtherCat.tsx +++ b/routes/OtherCat.tsx @@ -9,7 +9,7 @@ export default function OtherCat({theme, otherCategories, setOtherCategories, se const [newCat, setNewCat]:any = useState({id: 0, title: '', showEpisodes: false}); const [editPop, setEditPop] = useState(false); const [catSorted, setCatSorted] = useState(otherCategories); - //sort aplhabetically using a.title and b.title in a useEffect + useEffect(()=>{ setCatSorted(otherCategories.sort((a:any, b:any) => a.title.localeCompare(b.title))) },[otherCategories]) @@ -106,7 +106,7 @@ export default function OtherCat({theme, otherCategories, setOtherCategories, se Show season and episode tracker: - {(editPop)?DELETE:null} + {(editPop)?long press to delete:null}