Skip to content

Commit

Permalink
[SKP-189] fix : id 중복 오류 막기 위해 조합
Browse files Browse the repository at this point in the history
  • Loading branch information
yusiny committed Sep 24, 2024
1 parent 3ac9f49 commit 4541e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/Notification/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Notification({navigation}: NotificationProps) {

<FlatList
data={data}
keyExtractor={item => item.id.toString()}
keyExtractor={item => `${item.id}-${item.createdAt}`}
renderItem={({item}: {item: NotificationDTO}) => (
<NotificationItem item={item} />
)}
Expand Down

0 comments on commit 4541e5b

Please sign in to comment.