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 = [] const toPrepend = []
for (const item of res.data.feed) { for (const item of res.data.feed) {
if (this.feed.find(item2 => item2.uri === item.uri)) { 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 toPrepend.unshift(item) // reverse the order
} }

View File

@ -115,7 +115,7 @@ const Btn = ({
<Text style={styles.notificationCountLabel}>{notificationCount}</Text> <Text style={styles.notificationCountLabel}>{notificationCount}</Text>
</View> </View>
) : undefined} ) : undefined}
{tabCount > 1 ? ( {tabCount && tabCount > 1 ? (
<View style={styles.tabCount}> <View style={styles.tabCount}>
<Text style={styles.tabCountLabel}>{tabCount}</Text> <Text style={styles.tabCountLabel}>{tabCount}</Text>
</View> </View>