diff --git a/BTCPayServer/wwwroot/products/js/products.jquery.js b/BTCPayServer/wwwroot/products/js/products.jquery.js index 189794be2..5f4440b4a 100644 --- a/BTCPayServer/wwwroot/products/js/products.jquery.js +++ b/BTCPayServer/wwwroot/products/js/products.jquery.js @@ -45,7 +45,7 @@ $(document).ready(function(){ // Only continue if price and title is provided if (obj.price && obj.title) { - if (description) { + if (description != null) { obj.description = products.escape(description); } if (image) { diff --git a/BTCPayServer/wwwroot/products/js/products.js b/BTCPayServer/wwwroot/products/js/products.js index 6dd54c976..debc48b14 100644 --- a/BTCPayServer/wwwroot/products/js/products.js +++ b/BTCPayServer/wwwroot/products/js/products.js @@ -68,7 +68,7 @@ Products.prototype.loadFromTemplate = function() { 'title': title, 'price': price, 'image': image || null, - 'description': description || null, + 'description': description || '', 'custom': Boolean(custom), 'inventory': isNaN(inventory)? null: inventory });