From 2cd7159d41119b45a5a0c693bb19ff342e56e309 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 22 Mar 2026 19:38:07 +0100 Subject: [PATCH] Fix location filtering using all providers instead of active providers --- .../locations/hooks/use-filtered-country-locations.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/packages/mullvad-vpn/src/renderer/features/locations/hooks/use-filtered-country-locations.ts b/desktop/packages/mullvad-vpn/src/renderer/features/locations/hooks/use-filtered-country-locations.ts index ab58978dbf37..f754f0a80c61 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/features/locations/hooks/use-filtered-country-locations.ts +++ b/desktop/packages/mullvad-vpn/src/renderer/features/locations/hooks/use-filtered-country-locations.ts @@ -11,7 +11,7 @@ import { useMapReduxCountriesToCountryLocations } from './use-map-redux-countrie export function useFilteredCountryLocations(locationType: LocationType) { const locations = useSelector((state) => state.settings.relayLocations); const { activeOwnership } = useOwnership(); - const { providers } = useProviders(); + const { activeProviders } = useProviders(); const { daitaEnabled } = useDaitaEnabled(); const { daitaDirectOnly } = useDaitaDirectOnly(); const { obfuscation } = useObfuscation(); @@ -21,7 +21,7 @@ export function useFilteredCountryLocations(locationType: LocationType) { const filteredRelayLocations = filterLocations({ locations, ownership: activeOwnership, - providers, + providers: activeProviders, daita: daitaEnabled, directOnly: daitaDirectOnly, locationType,