File tree 1 file changed +2
-4
lines changed
app/components/UI/AccountSelectorList
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ const AccountSelectorList = ({
57
57
...props
58
58
} : AccountSelectorListProps ) => {
59
59
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 ) ;
63
61
const accountsLengthRef = useRef < number > ( 0 ) ;
64
62
const { styles } = useStyles ( styleSheet , { } ) ;
65
63
// TODO: Replace "any" with type
@@ -304,7 +302,7 @@ const AccountSelectorList = ({
304
302
: isSelected ,
305
303
) ;
306
304
accountListRef ?. current ?. scrollToOffset ( {
307
- offset : account ?. yOffset ,
305
+ offset : account ?. yOffset ?? 0 ,
308
306
animated : false ,
309
307
} ) ;
310
308
accountsLengthRef . current = accounts . length ;
You can’t perform that action at this time.
0 commit comments