Skip to content

Commit

Permalink
Add missing key in a map
Browse files Browse the repository at this point in the history
  • Loading branch information
wyne committed May 4, 2024
1 parent d9e30ae commit 704c13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ColorPalettes/ColorSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ const ColorSelector: React.FC<ColorSelectorProps> = ({ playerId }) => {
<Text style={[styles.title]}>Other Palletes</Text>
</View>

{colorPalettes.map((palette) => (
{colorPalettes.map((palette, palette_index) => (
currentPalette !== palette && (
<View style={{ flexDirection: 'row', marginVertical: 5 }}>
<View style={{ flexDirection: 'row', marginVertical: 5 }} key={'v' + palette_index}>
{
getPalette(palette).map((color, i) => (
<TouchableOpacity
Expand Down

0 comments on commit 704c13e

Please sign in to comment.