Add a trim to check if locationName is not empty.

This commit is contained in:
elweyn 2023-06-07 12:34:09 +02:00
parent de553e1f82
commit 3dadfd4329

View File

@ -18,7 +18,7 @@ export const validateEventParams = (params) => {
}
delete params.eventInput
let locationName
if (params.eventLocationName) {
if (params.eventLocationName.trim()) {
locationName = params.eventLocationName
} else {
params.eventLocationName = null