diff options
Diffstat (limited to 'frontend/src/components/playerList.js')
-rw-r--r-- | frontend/src/components/playerList.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/src/components/playerList.js b/frontend/src/components/playerList.js index 30384d53..45aa01a2 100644 --- a/frontend/src/components/playerList.js +++ b/frontend/src/components/playerList.js @@ -1,13 +1,14 @@ import React from 'react' import { Flex } from 'reflexbox' import { Text } from 'rebass' +import Immutable from 'seamless-immutable' const PlayerList = (props) => ( <div> - {props.players.map((player, index) => { + {Immutable.asMutable(props.players).map((player, index) => { return (<Flex key={index}> - <Text>{player.get('displayName')}</Text> - <Text>({player.get('username')})</Text> + <Text>{player.displayName}</Text> + <Text>({player.username})</Text> </Flex>) })} </div> |