From a3e2088707af94e8afd73e666362c2dfce388e9f Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 5 Jun 2019 16:07:30 +1000 Subject: [PATCH] HOTFIX --- src/components/pages/spying_log.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/pages/spying_log.jsx b/src/components/pages/spying_log.jsx index 51c9145..3b695ff 100644 --- a/src/components/pages/spying_log.jsx +++ b/src/components/pages/spying_log.jsx @@ -84,10 +84,10 @@ class SpyingLog extends React.Component { } buttonHeader() { - if (!this.buttonsVisible) { + if (!this.buttonsVisible && this.props.spies <= 0) { return null; } - +//TODO: prettier messages return (
@@ -151,7 +151,7 @@ class SpyingLog extends React.Component { } onReceived(data) { - this.setState({ buttonsVisible: data.length > 0 || this.props.spies > 0 }); + this.setState({ buttonsVisible: data.length > 0 }); if (data.length === 0) { let start = Math.max(0, this.state.start - this.state.length);