refine keyExtractor to avoid key duplication

This commit is contained in:
Nouman Tahir 2023-09-14 12:05:57 +05:00
parent 9ebb960b0d
commit 4869ebfcdc

View File

@ -172,7 +172,7 @@ const CommentsView = ({
contentContainerStyle={{ padding: 0 }} contentContainerStyle={{ padding: 0 }}
data={comments} data={comments}
renderItem={_renderItem} renderItem={_renderItem}
keyExtractor={(item) => get(item, 'permlink')} keyExtractor={(item) => item.author + item.permlink}
ListEmptyComponent={_renderEmptyContent()} ListEmptyComponent={_renderEmptyContent()}
ListHeaderComponent={postContentView} ListHeaderComponent={postContentView}
overScrollMode="never" overScrollMode="never"