splash screen downloading_headers flag tweak

This commit is contained in:
Akinwale Ariwodola 2018-08-13 15:49:12 +01:00
parent ee90951945
commit e5000f6502

View file

@ -97,6 +97,11 @@ class SplashScreen extends React.PureComponent {
isDownloadingHeaders: blockchainHeaders.downloading_headers,
headersDownloadProgress: blockchainHeaders.download_progress
});
} else {
// set downloading flag to false if blockchain_headers isn't in the status response
this.setState({
isDownloadingHeaders: false,
});
}
if (blockchainHeaders && blockchainHeaders.downloading_headers) {