diff --git a/LNbits/static/app.js b/LNbits/static/app.js index 53981662..cedca8de 100644 --- a/LNbits/static/app.js +++ b/LNbits/static/app.js @@ -280,8 +280,9 @@ function sidebarmake() { } function newwallet() { - walname = document.getElementById('walname').value - window.location.href = 'wallet?usr=' + user + '&nme=' + walname + var walname = document.getElementById('walname').value + window.location.href = + 'wallet?' + (user ? 'usr=' + user + '&' : '') + 'nme=' + walname } function drawChart(transactions) {