Skip to content

Commit 4e44fcc

Browse files
committed
Add missing key prop
1 parent 5dc2547 commit 4e44fcc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/NewEvents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ function NewEvents() {
109109
</Grid>
110110
<Grid container className={classes.event}>
111111
{attendingEvent.length > 0 &&
112-
attendingEvent.map(event => (
113-
<Grid className={classes.eventText}>
112+
attendingEvent.map((event, idx) => (
113+
<Grid key={idx} className={classes.eventText}>
114114
<img
115115
style={{ borderRadius: '8px', width: '74px', height: '71px' }}
116116
src={event.bannerImg}

src/components/ProfileEvents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ function ProfileEvents({ userEvents }) {
8181
</Grid>
8282
</Grid>
8383
<Grid container className={classes.event}>
84-
{userEvents?.map(event => (
85-
<Grid className={classes.eventText}>
84+
{userEvents?.map((event, idx) => (
85+
<Grid key={idx} className={classes.eventText}>
8686
<img
8787
style={{ borderRadius: '8px', width: '74px', height: '71px' }}
8888
src={event.bannerImg}

0 commit comments

Comments
 (0)