fix(console): add check to avoid blink daemon

This commit is contained in:
George Lima 2019-04-15 22:45:12 -03:00
parent 1ba67a866f
commit 191d5c9ecc
1 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,9 @@ class Component extends PureComponent<Props, State> {
componentDidMount() { componentDidMount() {
ipcRenderer.on('zcashd-log', (event: empty, message: string) => { ipcRenderer.on('zcashd-log', (event: empty, message: string) => {
if (message.indexOf('Downloading') !== -1) {
this.setState(() => ({ log: initialLog + message })); this.setState(() => ({ log: initialLog + message }));
}
}); });
} }
@ -84,9 +86,7 @@ class Component extends PureComponent<Props, State> {
const { log } = this.state; const { log } = this.state;
const { theme } = this.props; const { theme } = this.props;
const ConsoleSymbol = theme.mode === DARK const ConsoleSymbol = theme.mode === DARK ? ConsoleSymbolDark : ConsoleSymbolLight;
? ConsoleSymbolDark
: ConsoleSymbolLight;
return ( return (
<Wrapper id='console-wrapper'> <Wrapper id='console-wrapper'>