Skip to content

Commit 1155fc9

Browse files
committed
better types
1 parent bffe973 commit 1155fc9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/components/UI/AccountSelectorList/AccountSelectorList.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ const AccountSelectorList = ({
5757
...props
5858
}: AccountSelectorListProps) => {
5959
const { navigate } = useNavigation();
60-
// TODO: Replace "any" with type
61-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
62-
const accountListRef = useRef<any>(null);
60+
const accountListRef = useRef<FlashList<Account>>(null);
6361
const accountsLengthRef = useRef<number>(0);
6462
const { styles } = useStyles(styleSheet, {});
6563
// TODO: Replace "any" with type
@@ -304,7 +302,7 @@ const AccountSelectorList = ({
304302
: isSelected,
305303
);
306304
accountListRef?.current?.scrollToOffset({
307-
offset: account?.yOffset,
305+
offset: account?.yOffset ?? 0,
308306
animated: false,
309307
});
310308
accountsLengthRef.current = accounts.length;

0 commit comments

Comments
 (0)