diff options
| author | Hank <hank@mullvad.net> | 2022-10-17 13:54:18 +0200 |
|---|---|---|
| committer | Hank <hank@mullvad.net> | 2022-10-18 12:55:40 +0200 |
| commit | 90a0e0f47546de0b6ed2167474ce7795240015cc (patch) | |
| tree | 4f9811fe3095251f3097aad78565841f5d2d19de /gui/src | |
| parent | 6082dc5bb6a02b95bef0b10bc9875328322fca80 (diff) | |
| download | mullvadvpn-90a0e0f47546de0b6ed2167474ce7795240015cc.tar.xz mullvadvpn-90a0e0f47546de0b6ed2167474ce7795240015cc.zip | |
Simplify selectedEntryLocation
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/containers/SelectLocationPage.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/src/renderer/containers/SelectLocationPage.tsx b/gui/src/renderer/containers/SelectLocationPage.tsx index c7ada77118..1c3f3ff32a 100644 --- a/gui/src/renderer/containers/SelectLocationPage.tsx +++ b/gui/src/renderer/containers/SelectLocationPage.tsx @@ -61,10 +61,7 @@ export default function SelectLocationPage() { }, [tunnelProtocol, relaySettings]); const selectedEntryLocation = useMemo<RelayLocation | undefined>(() => { - if ( - !(tunnelProtocol === 'openvpn' && 'normal' in bridgeSettings) && - 'normal' in relaySettings - ) { + if (multihopEnabled && 'normal' in relaySettings) { const entryLocation = relaySettings.normal.wireguard.entryLocation; if (multihopEnabled && entryLocation !== 'any') { return entryLocation; |
