1
0
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:
Zhiyuan Zheng 2022-02-17 23:10:32 +01:00
parent dd7b9cd6a2
commit 3f7c85a41a
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
"native": "220214",
"major": 3,
"minor": 5,
"patch": 1,
"patch": 2,
"expo": "44.0.0"
},
"description": "tooot app for Mastodon",

View File

@ -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,