summaryrefslogtreecommitdiffhomepage
path: root/app/components/SelectLocation.js
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-11-09 09:03:45 +0100
committerErik Larkö <erik@mullvad.net>2017-11-09 09:03:45 +0100
commit7f6c8398eacb5421b51c1f02befde4e4f6402fc7 (patch)
tree93456d22efbf668e39147ffb50b3beee37272a8c /app/components/SelectLocation.js
parenta77e01a50b165fd8d6e2db96652a1fcc9a220723 (diff)
downloadmullvadvpn-7f6c8398eacb5421b51c1f02befde4e4f6402fc7.tar.xz
mullvadvpn-7f6c8398eacb5421b51c1f02befde4e4f6402fc7.zip
Redid the settings state and inlined a few components
Diffstat (limited to 'app/components/SelectLocation.js')
-rw-r--r--app/components/SelectLocation.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/components/SelectLocation.js b/app/components/SelectLocation.js
index c5180a3ffa..c6325ae2a5 100644
--- a/app/components/SelectLocation.js
+++ b/app/components/SelectLocation.js
@@ -25,10 +25,7 @@ export default class SelectLocation extends Component {
isSelected(server: string) {
const { host } = this.props.settings.relayConstraints;
- if (host === 'any') {
- return false;
- }
- return server === host.only;
+ return server === host;
}
drawCell(key: string, name: string, icon: ?string, onClick: (e: Event) => void): React.Element<*> {