Skip to content

Commit f605788

Browse files
committed
formatting
1 parent 6432f1e commit f605788

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/hooks/useAutoScroll.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ export function useAutoScroll<T>() {
115115
return null;
116116
if ("scrollToOffset" in flatListRef.current)
117117
return flatListRef.current as FlatList<T>;
118-
//@ts-ignore backwards compat
119-
if ("getNode" in flatListRef.current)
118+
if ("getNode" in flatListRef.current) {
119+
//@ts-ignore backwards compat
120120
return flatListRef.current.getNode();
121+
}
121122
return null;
122123
}
123124

0 commit comments

Comments
 (0)