summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-09-27 15:19:06 +0200
committerErik Larkö <erik@mullvad.net>2017-09-27 16:45:04 +0200
commit2c66bd9c9bbbcdb1bf9c8fad41b1061b8c95003f (patch)
tree42bc955dcdb246a431e2ac0d24de015bc4ac5f48 /app/components
parent309245504c814e5a152c156a83afcdd419144f45 (diff)
downloadmullvadvpn-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.js4
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