mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Proper gate return preventing running further codes
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user