Fix loadLatest() on home feed
This commit is contained in:
@@ -405,7 +405,7 @@ export class FeedModel {
|
||||
const toPrepend = []
|
||||
for (const item of res.data.feed) {
|
||||
if (this.feed.find(item2 => item2.uri === item.uri)) {
|
||||
return // stop here - we've hit a post we already have
|
||||
break // stop here - we've hit a post we already have
|
||||
}
|
||||
toPrepend.unshift(item) // reverse the order
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ const Btn = ({
|
||||
<Text style={styles.notificationCountLabel}>{notificationCount}</Text>
|
||||
</View>
|
||||
) : undefined}
|
||||
{tabCount > 1 ? (
|
||||
{tabCount && tabCount > 1 ? (
|
||||
<View style={styles.tabCount}>
|
||||
<Text style={styles.tabCountLabel}>{tabCount}</Text>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user