mirror of
https://github.com/tooot-app/app
synced 2025-03-13 18:10:12 +01:00
Hopefully fix the warning
This commit is contained in:
parent
dd7b9cd6a2
commit
3f7c85a41a
@ -4,7 +4,7 @@
|
||||
"native": "220214",
|
||||
"major": 3,
|
||||
"minor": 5,
|
||||
"patch": 1,
|
||||
"patch": 2,
|
||||
"expo": "44.0.0"
|
||||
},
|
||||
"description": "tooot app for Mastodon",
|
||||
|
@ -44,7 +44,7 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
|
||||
if (!scrolled.current) {
|
||||
scrolled.current = true
|
||||
const pointer = flattenData.findIndex(({ id }) => id === toot.id)
|
||||
if (pointer === -1) return
|
||||
if (pointer < 1) return
|
||||
Sentry.Native.setContext('Scroll to Index', {
|
||||
type: 'original',
|
||||
index: pointer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user