From 37e28a16f30e979fb7efae1f10bd30a4c8bd3cb7 Mon Sep 17 00:00:00 2001 From: Shubham Kanodia Date: Tue, 17 Sep 2019 23:39:30 +0530 Subject: [PATCH] Make analysisState check exhaustive --- .../ExportAnalysisSection/ExportAnalysisSection.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pages/result/components/ExportAnalysisSection/ExportAnalysisSection.js b/pages/result/components/ExportAnalysisSection/ExportAnalysisSection.js index 3beeed31..33492399 100644 --- a/pages/result/components/ExportAnalysisSection/ExportAnalysisSection.js +++ b/pages/result/components/ExportAnalysisSection/ExportAnalysisSection.js @@ -299,10 +299,8 @@ class ExportAnalysisSection extends Component { {this.getIncompatibleMessage() && this.renderIncompatible()} {analysisState === State.REJECTED && this.renderFailure()} - { - (analysisState === State.EXPORTS_FULFILLED || analysisState === State.SIZES_FULFILLED) ? - this.renderSuccess() : this.renderProgress() - } + {(analysisState === State.EXPORTS_FULFILLED || analysisState === State.SIZES_FULFILLED) && this.renderSuccess()} + { analysisState === State.IN_PROGRESS } ); }