hackfix likes tab (#7770)

This commit is contained in:
Samuel Newman
2025-02-25 09:02:08 -08:00
committed by GitHub
parent 9c5d92088d
commit 23f0092440
+3 -1
View File
@@ -42,8 +42,10 @@ export class LikesFeedAPI implements FeedAPI {
limit,
})
if (res.success) {
// HACKFIX: the API incorrectly returns a cursor when there are no items -sfn
const isEmptyPage = res.data.feed.length === 0
return {
cursor: res.data.cursor,
cursor: isEmptyPage ? undefined : res.data.cursor,
feed: res.data.feed,
}
}