Skip to content

Commit

Permalink
mobile: BookInfoModalReview: fix key extraction for more than one review
Browse files Browse the repository at this point in the history
Users can submit multiple reviews, so we should use the review ID
instead of the user ID
  • Loading branch information
ericswpark committed Apr 21, 2024
1 parent 16727a1 commit fd5b2e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const BookInfoModalReview = ({ bookInfo, navigation }) => {
<FlatList
data={data}
showsVerticalScrollIndicator={false}
keyExtractor={(item) => item.user_id}
keyExtractor={(item) => item.$id}
ListHeaderComponent={() => (
<View
style={{
Expand Down

0 comments on commit fd5b2e3

Please sign in to comment.