diff --git a/src/screens/Profile/Sections/Labels.tsx b/src/screens/Profile/Sections/Labels.tsx index 120fb8225b..2171a5400e 100644 --- a/src/screens/Profile/Sections/Labels.tsx +++ b/src/screens/Profile/Sections/Labels.tsx @@ -48,11 +48,9 @@ export function ProfileLabelsSection({ const t = useTheme() const onScrollToTop = useCallback(() => { - // @ts-expect-error TODO fix this - scrollElRef.current?.scrollTo({ + scrollElRef.current?.scrollToOffset({ animated: isNative, - x: 0, - y: -headerHeight, + offset: -headerHeight, }) }, [scrollElRef, headerHeight])