mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
Add a trim to check if locationName is not empty.
This commit is contained in:
parent
de553e1f82
commit
3dadfd4329
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user