diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-07-07 14:01:01 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-07-07 14:01:01 +0200 |
| commit | 249a7bd02f3be3e3a5dc4925775cddd63da3cbae (patch) | |
| tree | 3033099f2a3081618e05531a5e828b910b25c244 /app/components/Connect.js | |
| parent | 14dde4abec12189a63f1ae071b300add447c2bfc (diff) | |
| parent | 16ee9a212560f0a1989dc278cb9281152307275d (diff) | |
| download | mullvadvpn-249a7bd02f3be3e3a5dc4925775cddd63da3cbae.tar.xz mullvadvpn-249a7bd02f3be3e3a5dc4925775cddd63da3cbae.zip | |
Merge branch 'state-refactoring'
Diffstat (limited to 'app/components/Connect.js')
| -rw-r--r-- | app/components/Connect.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js index edca72c102..eb93d97432 100644 --- a/app/components/Connect.js +++ b/app/components/Connect.js @@ -1,4 +1,5 @@ // @flow + import moment from 'moment'; import React, { Component } from 'react'; import { If, Then, Else } from 'react-if'; @@ -128,7 +129,7 @@ export default class Connect extends Component { const displayLocation = this.displayLocation(); const mapBounds = this.calculateMapBounds(displayLocation.location, altitude); const mapBoundsOptions = { offset: [0, -113], animate: !this.state.isFirstPass }; - const accountLocation = this.convertToMapCoordinate(this.props.account.location || [0, 0]); + const accountLocation = this.convertToMapCoordinate(this.props.connection.location || [0, 0]); const serverLocation = this.convertToMapCoordinate(serverInfo.location); const map = process.platform === 'darwin' @@ -396,7 +397,7 @@ export default class Connect extends Component { displayLocation(): DisplayLocation { // return user location when disconnected if(this.props.connection.status === 'disconnected') { - let { location, country, city } = this.props.account; + let { location, country, city } = this.props.connection; return { location: location || [0, 0], country, city |
