fix: Set the loading state before redirecting

This commit is contained in:
Alexander Polynomdivision 2018-09-20 17:09:34 +02:00
parent f49e3880e1
commit da11490b00

View File

@ -126,6 +126,7 @@ const ReviewPageWithRouter = withRouter(
if (this.reviewQueue.size() === 0) { if (this.reviewQueue.size() === 0) {
// Go to the summary screen // Go to the summary screen
this.props.setLastReview(this.metadata); this.props.setLastReview(this.metadata);
this.props.setLoading(true);
this.props.history.push("/review/summary"); this.props.history.push("/review/summary");
} else { } else {
// Increase the vocab // Increase the vocab