Skip to content

Commit c9b6b39

Browse files
author
Rishabh
committed
adding key to StarButton render
1 parent 0e324c3 commit c9b6b39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Rating/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const Rating = ({
4343
name={icon}
4444
size={size}
4545
position={i}
46+
key={`bgstar_${i}`}
4647
color={ratingBackgroundColor}
4748
margin={marginBetweenRatingIcon}
4849
onStarTap={onStarTap}
@@ -56,6 +57,7 @@ const Rating = ({
5657
size={size}
5758
color={ratingColor}
5859
position={i}
60+
key={`cstar_${i}`}
5961
margin={marginBetweenRatingIcon}
6062
onStarTap={onStarTap}
6163
readonly={readonly}

0 commit comments

Comments
 (0)