reset to top on new challenge (#15607)

This commit is contained in:
Dylan
2017-07-09 12:58:25 -05:00
committed by Quincy Larson
parent ddd852df7b
commit 6608f82d5a

View File

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