From da11490b006afced7de4087487740b56d65110e7 Mon Sep 17 00:00:00 2001 From: Alexander Polynomdivision Date: Thu, 20 Sep 2018 17:09:34 +0200 Subject: [PATCH] fix: Set the loading state before redirecting --- src/pages/review.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/review.tsx b/src/pages/review.tsx index 676a375..61804c2 100644 --- a/src/pages/review.tsx +++ b/src/pages/review.tsx @@ -126,6 +126,7 @@ const ReviewPageWithRouter = withRouter( if (this.reviewQueue.size() === 0) { // Go to the summary screen this.props.setLastReview(this.metadata); + this.props.setLoading(true); this.props.history.push("/review/summary"); } else { // Increase the vocab