Hide the service price and provider address if they are empty (#863)

This commit is contained in:
Alex Tselegidis 2020-08-15 14:28:49 +03:00
parent 177375e814
commit 88ce8d506a

View file

@ -545,7 +545,7 @@ window.FrontendBook = window.FrontendBook || {};
$('<br/>'),
$('<span/>', {
'text': $('#select-timezone option:selected').text()
+ ' - ' + servicePrice + ' ' + serviceCurrency
+ (servicePrice ? ' - ' + servicePrice + ' ' + serviceCurrency : '')
})
]
})
@ -582,15 +582,15 @@ window.FrontendBook = window.FrontendBook || {};
}),
$('<br/>'),
$('<span/>', {
'text': EALang.address + ': ' + address
'text': address ? EALang.address + ': ' + address : ''
}),
$('<br/>'),
$('<span/>', {
'text': EALang.city + ': ' + city
'text': city ? EALang.city + ': ' + city : ''
}),
$('<br/>'),
$('<span/>', {
'text': EALang.zip_code + ': ' + zipCode
'text': zipCode ? EALang.zip_code + ': ' + zipCode : ''
}),
$('<br/>'),
]