diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-20 16:20:04 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-06-20 16:20:04 +0200 |
| commit | 648c6e06ce07503be4eebbd46bd7b2e843a862fe (patch) | |
| tree | e8867916c95f8855dee60ad06f44e94244aa60f3 /app/components/Connect.js | |
| parent | 3e7a83f27a10cf6630ba5ff885b64cc24b02e9e3 (diff) | |
| parent | ffd34043d74cd59206c260b59d318c8e9bba9a39 (diff) | |
| download | mullvadvpn-648c6e06ce07503be4eebbd46bd7b2e843a862fe.tar.xz mullvadvpn-648c6e06ce07503be4eebbd46bd7b2e843a862fe.zip | |
Merge branch 'migrate-to-chai-spies'
Diffstat (limited to 'app/components/Connect.js')
| -rw-r--r-- | app/components/Connect.js | 4 |
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(); |
