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