diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-14 18:43:58 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-14 18:43:58 +0200 |
commit | b6f54ed56121aa5435dd813c952b292b25b56bfb (patch) | |
tree | b4c88476393b031f00e9a1398f4f2a352f530341 /frontend/src/components/playerList.js | |
parent | Fix typo in error subscription path (diff) | |
download | seven-wonders-b6f54ed56121aa5435dd813c952b292b25b56bfb.tar.gz seven-wonders-b6f54ed56121aa5435dd813c952b292b25b56bfb.tar.bz2 seven-wonders-b6f54ed56121aa5435dd813c952b292b25b56bfb.zip |
Add lobby saga
- Fix lobby's player list updates
- Fix lobby's player list order
- Add 'start game' button (not restricted to owner yet)
Resolves:
https://github.com/luxons/seven-wonders/issues/7
Diffstat (limited to 'frontend/src/components/playerList.js')
-rw-r--r-- | frontend/src/components/playerList.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/playerList.js b/frontend/src/components/playerList.js index 45aa01a2..70e8b1f6 100644 --- a/frontend/src/components/playerList.js +++ b/frontend/src/components/playerList.js @@ -5,8 +5,8 @@ import Immutable from 'seamless-immutable' const PlayerList = (props) => ( <div> - {Immutable.asMutable(props.players).map((player, index) => { - return (<Flex key={index}> + {Immutable.asMutable(props.players).map(player => { + return (<Flex key={player.index}> <Text>{player.displayName}</Text> <Text>({player.username})</Text> </Flex>) |