From 62f30ab8333ba0921c7d5f2e30fc307999114e10 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 21 Jan 2025 10:26:21 -0600 Subject: [PATCH] DRY --- src/screens/VideoFeed/index.tsx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx index 817780a9e5..7453aa5d47 100644 --- a/src/screens/VideoFeed/index.tsx +++ b/src/screens/VideoFeed/index.tsx @@ -694,6 +694,7 @@ function Overlay({ text: record?.text || '', facets: record?.facets, }) + const handle = sanitizeHandle(post.author.handle, '@') const animatedStyle = useAnimatedStyle(() => ({ opacity: 1 - seekingAnimationSV.get(), @@ -780,7 +781,7 @@ function Overlay({ - {sanitizeHandle(post.author.handle, '@')} + {handle} @@ -789,18 +790,8 @@ function Overlay({