diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-08-02 22:01:40 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-08-02 22:01:40 -0300 |
| commit | e8b4942f5e1c0d3962975820c062d100b98745a1 (patch) | |
| tree | 6a6d66685b2d450eb40c1bd33c57329d0561c04b /app/components | |
| parent | 0abcde1cac8db5bd86080ee92a39521d3c2bd13c (diff) | |
| parent | 58e73802b39bdbad3b38fc1389105b978a6316c9 (diff) | |
| download | mullvadvpn-e8b4942f5e1c0d3962975820c062d100b98745a1.tar.xz mullvadvpn-e8b4942f5e1c0d3962975820c062d100b98745a1.zip | |
Merge branch 'refactor-error-instantiation'
Diffstat (limited to 'app/components')
| -rw-r--r-- | app/components/Connect.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js index dabde569dc..d472c45b31 100644 --- a/app/components/Connect.js +++ b/app/components/Connect.js @@ -63,7 +63,7 @@ export default class Connect extends Component<ConnectProps, ConnectState> { } render() { - const error = this.displayError(); + const error = this.checkForErrors(); const child = error ? this.renderError(error) : this.renderMap(); return ( @@ -354,7 +354,7 @@ export default class Connect extends Component<ConnectProps, ConnectState> { return classes; } - displayError(): ?Error { + checkForErrors(): ?Error { // Offline? if (!this.props.connection.isOnline) { return new NoInternetError(); |
