Always render footer component
Remove the early return for empty data - always render either CreateAnother (for own profile) or ListFooter (for other profiles).
This commit is contained in:
@@ -161,9 +161,6 @@ export function ProfileStarterPacks({
|
||||
)
|
||||
|
||||
const renderFooter = useCallback(() => {
|
||||
if (!data || items?.length === 0) {
|
||||
return null
|
||||
}
|
||||
if (isMe) {
|
||||
return <CreateAnother style={{paddingBottom: bottomBarOffset}} />
|
||||
}
|
||||
@@ -177,8 +174,6 @@ export function ProfileStarterPacks({
|
||||
/>
|
||||
)
|
||||
}, [
|
||||
data,
|
||||
items?.length,
|
||||
isMe,
|
||||
bottomBarOffset,
|
||||
isFetchingNextPage,
|
||||
|
||||
Reference in New Issue
Block a user