summaryrefslogtreecommitdiff
path: root/frontend/src/components/playerList.js
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-05-14 18:43:58 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-05-14 18:43:58 +0200
commitb6f54ed56121aa5435dd813c952b292b25b56bfb (patch)
treeb4c88476393b031f00e9a1398f4f2a352f530341 /frontend/src/components/playerList.js
parentFix typo in error subscription path (diff)
downloadseven-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.js4
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>)
bgstack15