Fix loadLatest() on home feed

zio/stable
Paul Frazee 2022-11-17 13:17:08 -06:00
parent c6b137a153
commit 859087f21d
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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>