Skip to content

Commit

Permalink
Update text key
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Nov 13, 2023
1 parent 18fc871 commit e4245e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/EmojiSuggestions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ function EmojiSuggestions({emojis, onSelect, prefix, isEmojiPickerLarge, preferr
style={styles.emojiSuggestionsText}
>
:
{styledTextArray.map(({text, isColored}, i) => (
{styledTextArray.map(({text, isColored}) => (
<Text
/* eslint-disable-next-line react/no-array-index-key */
key={`${text}+${i}`}
key={`${text}+${isColored}`}
style={StyleUtils.getColoredBackgroundStyle(isColored)}
>
{text}
Expand Down

0 comments on commit e4245e4

Please sign in to comment.