Browse Source

small fix

Viktoriia 2 weeks ago
parent
commit
b3771e59b7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/screens/InAppScreens/TravelsScreen/AddNewTripScreen/index.tsx

+ 2 - 2
src/screens/InAppScreens/TravelsScreen/AddNewTripScreen/index.tsx

@@ -364,7 +364,7 @@ const AddNewTripScreen = ({ route }: { route: any }) => {
         };
       });
 
-      if (regionsData.length >= 30) {
+      if (regionsData.length > 30) {
         Alert.alert('One trip cannot have more than 30 regions.');
         setIsLoading(null);
         return;
@@ -412,7 +412,7 @@ const AddNewTripScreen = ({ route }: { route: any }) => {
         };
       });
 
-      if (regionsData.length >= 30) {
+      if (regionsData.length > 30) {
         Alert.alert('One trip cannot have more than 30 regions.');
         setIsLoading(null);
         return;