|
@@ -198,6 +198,9 @@ const CreateSharedTripScreen = ({ route }: { route: any }) => {
|
|
if (regions.length === 0) {
|
|
if (regions.length === 0) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (photos.length > 0 && !values.photo) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
setIsSubmitting(true);
|
|
setIsSubmitting(true);
|
|
|
|
|
|
const regionsToSave = regions.map((region) => region.id);
|
|
const regionsToSave = regions.map((region) => region.id);
|