From 88ce8d506a60ed04a45853778c5023f5ce3de5de Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 15 Aug 2020 14:28:49 +0300 Subject: [PATCH] Hide the service price and provider address if they are empty (#863) --- assets/js/frontend_book.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/frontend_book.js b/assets/js/frontend_book.js index 2c78d362..87553002 100644 --- a/assets/js/frontend_book.js +++ b/assets/js/frontend_book.js @@ -545,7 +545,7 @@ window.FrontendBook = window.FrontendBook || {}; $('
'), $('', { 'text': $('#select-timezone option:selected').text() - + ' - ' + servicePrice + ' ' + serviceCurrency + + (servicePrice ? ' - ' + servicePrice + ' ' + serviceCurrency : '') }) ] }) @@ -582,15 +582,15 @@ window.FrontendBook = window.FrontendBook || {}; }), $('
'), $('', { - 'text': EALang.address + ': ' + address + 'text': address ? EALang.address + ': ' + address : '' }), $('
'), $('', { - 'text': EALang.city + ': ' + city + 'text': city ? EALang.city + ': ' + city : '' }), $('
'), $('', { - 'text': EALang.zip_code + ': ' + zipCode + 'text': zipCode ? EALang.zip_code + ': ' + zipCode : '' }), $('
'), ]