reset to top on new challenge (#15607)

pull/14927/merge
Dylan 2017-07-09 12:58:25 -05:00 committed by Quincy Larson
parent ddd852df7b
commit 6608f82d5a
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ export class Challenge extends PureComponent {
componentDidMount() {
this.props.loadCode();
this.props.updateSuccessMessage(randomCompliment());
window.scrollTo(0, 0);
}
componentWillReceiveProps(nextProps) {