chips-blockchain / pangea-poker

This is the reference GUI for Pangea Poker, blackchain based decentralised game.
https://chips.cash/
25 stars 17 forks source link

Support for the customized player names in the GUI #505

Open sg777 opened 2 years ago

sg777 commented 2 years ago

Whenever the backend sends the customized names to the GUI, the GUI is not supporting and throwing the following error:

1636430598250: Received from playerRead:  {method: 'seats', seats: Array(2)}method: "seats"seats: Array(2)0: {name: 'player1', seat: 0, chips: 10, empty: 0, playing: 0}1: {name: 'sg777', seat: 1, chips: 10, empty: 0, playing: 0}length: 2[[Prototype]]: Array(0)[[Prototype]]: Object
react-dom.development.js:88 Warning: Encountered two children with the same key, `player2`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
    in div (created by Context.Consumer)
    in EmotionCssPropInternal (created by PlayerGrid9Max)
    in PlayerGrid9Max (created by Table)
    in div (created by Context.Consumer)
    in TableWrapper (created by Table)
    in div (created by Context.Consumer)
    in TableContainer (created by Table)
    in div (created by Table)
    in div (created by Table)
    in Table (created by App)
    in ContextProvider (created by App)
    in App