Skip to content

Commit

Permalink
Merge pull request #1304 from culturecreates/bugfix/issue-1294
Browse files Browse the repository at this point in the history
fix: handled comma and space
  • Loading branch information
sahalali authored Sep 6, 2024
2 parents da7a083 + 1bedc84 commit a3dd36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a3dd36e

Please sign in to comment.