remove didDownloadHeaders from component state as it's no longer needed
This commit is contained in:
parent
440ef4b1ad
commit
43a68fe846
1 changed files with 1 additions and 5 deletions
|
@ -26,7 +26,6 @@ class SplashScreen extends React.PureComponent {
|
||||||
isRunning: false,
|
isRunning: false,
|
||||||
isLagging: false,
|
isLagging: false,
|
||||||
launchUrl: null,
|
launchUrl: null,
|
||||||
didDownloadHeaders: false,
|
|
||||||
isDownloadingHeaders: false,
|
isDownloadingHeaders: false,
|
||||||
headersDownloadProgress: 0
|
headersDownloadProgress: 0
|
||||||
});
|
});
|
||||||
|
@ -100,10 +99,7 @@ class SplashScreen extends React.PureComponent {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (blockchainHeaders && blockchainHeaders.downloading_headers && blockchainHeaders.download_progress < 100) {
|
if (blockchainHeaders && blockchainHeaders.downloading_headers) {
|
||||||
if (!this.state.didDownloadHeaders) {
|
|
||||||
this.setState({ didDownloadHeaders: true });
|
|
||||||
}
|
|
||||||
const downloadProgress = blockchainHeaders.download_progress ? blockchainHeaders.download_progress : 0;
|
const downloadProgress = blockchainHeaders.download_progress ? blockchainHeaders.download_progress : 0;
|
||||||
this.setState({
|
this.setState({
|
||||||
message: 'Blockchain Sync',
|
message: 'Blockchain Sync',
|
||||||
|
|
Loading…
Add table
Reference in a new issue