diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-09-27 15:19:06 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-09-27 16:45:04 +0200 |
| commit | 2c66bd9c9bbbcdb1bf9c8fad41b1061b8c95003f (patch) | |
| tree | 42bc955dcdb246a431e2ac0d24de015bc4ac5f48 /app/components | |
| parent | 309245504c814e5a152c156a83afcdd419144f45 (diff) | |
| download | mullvadvpn-2c66bd9c9bbbcdb1bf9c8fad41b1061b8c95003f.tar.xz mullvadvpn-2c66bd9c9bbbcdb1bf9c8fad41b1061b8c95003f.zip | |
Show different locations if the user is connected or not
Diffstat (limited to 'app/components')
| -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 a5af9250f7..3948f58944 100644 --- a/app/components/Connect.js +++ b/app/components/Connect.js @@ -109,7 +109,9 @@ export default class Connect extends Component { case 'disconnected': isDisconnected = true; break; } - const { city, country } = serverInfo; + const { city, country } = isConnected + ? serverInfo + : { city: '\u2003', country: '\u2002' }; // We decided to not include the map in the first beta release to customers // but it MUST be included in the following releases. Therefore we choose |
