1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

trim events' location, change variable name

This commit is contained in:
Daniel Waxweiler
2022-01-09 12:54:58 +01:00
parent ec12889815
commit 184d5627a3
3 changed files with 14 additions and 8 deletions

View File

@ -31,8 +31,8 @@ export default class Formatter {
static formatLocation({ description, locality }) {
let location = ''
if (description) {
location += description
if (description && description.trim()) {
location += description.trim()
}
if (location && locality) {
location += ', '