Fix loadLatest() on home feed
parent
c6b137a153
commit
859087f21d
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue