Skip to content

Commit 35a34a0

Browse files
committed
nest turns inside phases
1 parent 6dfaa36 commit 35a34a0

9 files changed

Lines changed: 428 additions & 379 deletions

File tree

src/client/log/log.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ export class GameLog extends React.Component {
138138
rewind = logIndex => {
139139
let state = this.props.initialState;
140140
for (let i = 0; i < this.props.log.length; i++) {
141-
const { action } = this.props.log[i];
141+
const { action, automatic } = this.props.log[i];
142142

143-
if (!action.automatic) {
143+
if (!automatic) {
144144
state = this.props.reducer(state, action);
145145
}
146146

0 commit comments

Comments
 (0)