Skip to content

Commit 65d981a

Browse files
committed
add missing key to the carbonads item
1 parent f8657bb commit 65d981a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/ListComponent.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ function ListComponent({ fetchData, refresh, renderItem, withAds }) {
3737
return items.map((item, index) => {
3838
let content = [renderItem(item, index)]
3939
if(withAds && index == 0) {
40-
content.unshift(
41-
<CarbonAd />
42-
)
40+
content.unshift(<CarbonAd key={'carbonAd0'} />)
4341
}
4442
return content
4543
})

0 commit comments

Comments
 (0)