diff --git a/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx b/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx index d5ecfdac..a89a35b3 100644 --- a/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx +++ b/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx @@ -524,7 +524,7 @@ function CreateNewPlace() { }); } if (values?.coordinates) { - const coordinates = values.coordinates.split(','); + const coordinates = values.coordinates.split(/[, ]+/); latitude = coordinates[0] || undefined; longitude = coordinates[1] || undefined; }