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