Skip to content

Commit

Permalink
fix bug that was preventing playerID from being overriden by the debu…
Browse files Browse the repository at this point in the history
…g ui
  • Loading branch information
darthfiddler committed Aug 6, 2018
1 parent 29a372b commit ebf7e73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export function Client({ game, numPlayers, board, multiplayer, enhancer }) {
if (board) {
_board = React.createElement(board, {
...state,
...rest,
gameID,
playerID,
isMultiplayer: multiplayer !== undefined,
Expand All @@ -106,7 +107,6 @@ export function Client({ game, numPlayers, board, multiplayer, enhancer }) {
reset: this.client.reset,
undo: this.client.undo,
redo: this.client.redo,
...rest,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/client/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export function Client({
if (board) {
_board = React.createElement(board, {
...state,
...rest,
isMultiplayer: multiplayer !== undefined,
moves: this.client.moves,
events: this.client.events,
Expand All @@ -155,7 +156,6 @@ export function Client({
reset: this.client.reset,
undo: this.client.undo,
redo: this.client.redo,
...rest,
});
}

Expand Down

0 comments on commit ebf7e73

Please sign in to comment.