Skip to content

Commit

Permalink
Fix puzzle reload
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Nov 25, 2017
1 parent 0fed3bb commit 1d38c41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/training/TrainingCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ export default class TrainingCtrl implements PromotingInterface {
.catch(this.onXhrError)
}

public retry = router.reload
public retry = () => {
xhr.loadPuzzle(this.data.puzzle.id).then(this.init)
}

public share = () => {
window.plugins.socialsharing.share(null, null, null, `http://lichess.org/training/${this.data.puzzle.id}`)
Expand Down

0 comments on commit 1d38c41

Please sign in to comment.