Selaa lähdekoodia

small fix for nomads switch

Viktoriia 1 kuukausi sitten
vanhempi
commit
569c24d222
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      src/screens/InAppScreens/MapScreen/FilterModal/index.tsx

+ 1 - 2
src/screens/InAppScreens/MapScreen/FilterModal/index.tsx

@@ -598,9 +598,8 @@ const FilterModal = ({
 
   const toggleNomadsSwitch = () => {
     if (!showNomads) {
-      setSelectedCountries([]);
-      setTrustedVisible(false);
       setFriendsVisible(false);
+      setSelectedCountries([]);
     }
     setShowNomads && setShowNomads(!showNomads);
     storage.set('showNomads', !showNomads);