Commit c145ed26 authored by Alexander Kotov's avatar Alexander Kotov

allow disk to move back to tower on second click

parent 30dc12a5
......@@ -28,7 +28,7 @@ class App extends Component {
let disk = disks.shift()
this.setState({
[tower]: disks,
move: { disk, from: tower }
move: { disk, from: tower, to: tower }
})
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment