summaryrefslogtreecommitdiffhomepage
path: root/app/components/Connect.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/components/Connect.js')
-rw-r--r--app/components/Connect.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js
index f4647678f1..fbb743854d 100644
--- a/app/components/Connect.js
+++ b/app/components/Connect.js
@@ -294,7 +294,9 @@ export default class Connect extends Component<ConnectProps, ConnectState> {
}
onIPAddressClick() {
- this._copyTimer && clearTimeout(this._copyTimer);
+ if (this._copyTimer) {
+ clearTimeout(this._copyTimer);
+ }
this._copyTimer = setTimeout(() => this.setState({ showCopyIPMessage: false }), 3000);
this.setState({ showCopyIPMessage: true });
this.props.onCopyIP();