mirror of https://github.com/tooot-app/app
Proper gate return preventing running further codes
This commit is contained in:
parent
9936f6c921
commit
50141b2963
|
@ -4,7 +4,7 @@
|
|||
"native": "220206",
|
||||
"major": 3,
|
||||
"minor": 4,
|
||||
"patch": 3,
|
||||
"patch": 4,
|
||||
"expo": "44.0.0"
|
||||
},
|
||||
"description": "tooot app for Mastodon",
|
||||
|
|
|
@ -38,6 +38,7 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
|
|||
// Auto go back when toot page is empty
|
||||
if (flattenData.length === 0) {
|
||||
navigation.goBack()
|
||||
return
|
||||
}
|
||||
setItemsLength(flattenData.length)
|
||||
if (!scrolled.current) {
|
||||
|
|
Loading…
Reference in New Issue