From a37dababe38aa65453b4db81242a0da70bb6437a Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Mon, 18 Dec 2023 09:05:48 +0500 Subject: [PATCH] mobile: cleanup --- apps/mobile/app/components/list/list-item.wrapper.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/mobile/app/components/list/list-item.wrapper.tsx b/apps/mobile/app/components/list/list-item.wrapper.tsx index 2da9c1da0..175e1c170 100644 --- a/apps/mobile/app/components/list/list-item.wrapper.tsx +++ b/apps/mobile/app/components/list/list-item.wrapper.tsx @@ -119,15 +119,9 @@ export function ListItemWrapper(props: ListItemWrapperProps) { clearTimeout(refreshTimeout.current); const idx = index; refreshTimeout.current = setTimeout(async () => { - if (idx !== previousIndex.current) { - return; - } + if (idx !== previousIndex.current) return; const resolvedItem = await items?.item(idx, resolveItems); - if (idx !== previousIndex.current) { - console.log("cancel", idx, previousIndex.current); - return; - } - + if (idx !== previousIndex.current) return; refreshItem(resolvedItem); }, 100); } catch (e) {